aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-09-27 22:59:32 +0200
committerMichael Muré <batolettre@gmail.com>2020-09-29 20:43:53 +0200
commit02146f0b404e3f247c2fcb540b10c42f37630735 (patch)
treeffb3b99e310bbd15b53e15540b43459ff335f2d9
parent736d0a2f0931d3e5466d9838839f5bbde606fe34 (diff)
downloadgit-bug-02146f0b404e3f247c2fcb540b10c42f37630735.tar.gz
use go-git by default!
-rw-r--r--commands/env.go2
-rw-r--r--misc/random_bugs/cmd/main.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/commands/env.go b/commands/env.go
index 59c5d33b..5658342d 100644
--- a/commands/env.go
+++ b/commands/env.go
@@ -54,7 +54,7 @@ func loadRepo(env *Env) func(*cobra.Command, []string) error {
return fmt.Errorf("unable to get the current working directory: %q", err)
}
- env.repo, err = repository.NewGitRepo(cwd, []repository.ClockLoader{bug.ClockLoader})
+ env.repo, err = repository.NewGoGitRepo(cwd, []repository.ClockLoader{bug.ClockLoader})
if err == repository.ErrNotARepo {
return fmt.Errorf("%s must be run from within a git repo", rootCommandName)
}
diff --git a/misc/random_bugs/cmd/main.go b/misc/random_bugs/cmd/main.go
index ec62b6ed..3127b4aa 100644
--- a/misc/random_bugs/cmd/main.go
+++ b/misc/random_bugs/cmd/main.go
@@ -20,7 +20,7 @@ func main() {
bug.ClockLoader,
}
- repo, err := repository.NewGitRepo(dir, loaders)
+ repo, err := repository.NewGoGitRepo(dir, loaders)
if err != nil {
panic(err)
}