Skip to content

Commit

Permalink
Support running in a sub directory
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoshidajp committed Oct 8, 2023
1 parent caf60ae commit e2814bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func currentBranch() string {
log.Fatal(err)
}

repo, err := git.PlainOpen(dir)
repo, err := git.PlainOpenWithOptions(dir, &git.PlainOpenOptions{DetectDotGit: true})
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit e2814bd

Please sign in to comment.