use go-git by default!

This commit is contained in:
Michael Muré 2020-09-27 22:59:32 +02:00
parent 736d0a2f09
commit 02146f0b40
2 changed files with 2 additions and 2 deletions

View File

@ -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)
}

View File

@ -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)
}