mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-14 08:45:30 +03:00
use go-git by default!
This commit is contained in:
parent
736d0a2f09
commit
02146f0b40
@ -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)
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user