Skip to content

Commit 3b9d063

Browse files
authored
Merge pull request #11 from kyoshidajp/support_sub_dir
Support running in a sub directory
2 parents caf60ae + e2814bd commit 3b9d063

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func currentBranch() string {
3636
log.Fatal(err)
3737
}
3838

39-
repo, err := git.PlainOpen(dir)
39+
repo, err := git.PlainOpenWithOptions(dir, &git.PlainOpenOptions{DetectDotGit: true})
4040
if err != nil {
4141
log.Fatal(err)
4242
}

0 commit comments

Comments
 (0)