Skip to content

Commit

Permalink
Merge pull request #11 from kyoshidajp/support_sub_dir
Browse files Browse the repository at this point in the history
Support running in a sub directory
  • Loading branch information
kyoshidajp authored Oct 8, 2023
2 parents caf60ae + e2814bd commit 3b9d063
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 3b9d063

Please sign in to comment.