We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aef293c + 2c29d14 commit 1d73d87Copy full SHA for 1d73d87
internal/pkg/git/git.go
@@ -10,6 +10,7 @@ import (
10
// GetTopLevelPath returns the top-level folder for the git-repo that contains path, or empty string if not a repo
11
func GetTopLevelPath(path string) (string, error) {
12
cmd := exec.Command("git", "rev-parse", "--show-toplevel")
13
+ cmd.Dir = path
14
15
buf, err := cmd.Output()
16
if err != nil {
0 commit comments