From e2814bdfc154c01d677cf77e650d78a4453e3313 Mon Sep 17 00:00:00 2001 From: Katsuhiko YOSHIDA Date: Sun, 8 Oct 2023 15:31:33 +0900 Subject: [PATCH] Support running in a sub directory --- cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index 84554c1..7dbb909 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -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) }