diff options
author | Michael Muré <batolettre@gmail.com> | 2018-12-25 16:35:37 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-12-25 16:35:37 +0100 |
commit | 96f514168f17136fe02519ab4599a407cd0cc5cb (patch) | |
tree | 28ed1a2455ab1e74f5b0f5ab9a5081d90c7bdc3f /repository/git.go | |
parent | 8a6a8055d723e523d9943244b042c778d75b02cc (diff) | |
download | git-bug-96f514168f17136fe02519ab4599a407cd0cc5cb.tar.gz |
repo: minor cleaning
Diffstat (limited to 'repository/git.go')
-rw-r--r-- | repository/git.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/repository/git.go b/repository/git.go index af251aa2..c2f0da0a 100644 --- a/repository/git.go +++ b/repository/git.go @@ -67,7 +67,7 @@ func (repo *GitRepo) runGitCommand(args ...string) (string, error) { // NewGitRepo determines if the given working directory is inside of a git repository, // and returns the corresponding GitRepo instance if it is. -func NewGitRepo(path string, witnesser func(repo *GitRepo) error) (*GitRepo, error) { +func NewGitRepo(path string, witnesser Witnesser) (*GitRepo, error) { repo := &GitRepo{Path: path} // Check the repo and retrieve the root path |