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.
1 parent 2436ff1 commit 4744b39Copy full SHA for 4744b39
main.go
@@ -71,8 +71,12 @@ func main() {
71
log.Fatal("--path option is incompatible with the --work-tree and --git-dir options")
72
}
73
74
- workTree = repoPath
75
- gitDir = filepath.Join(repoPath, ".git")
+ absRepoPath, err := filepath.Abs(repoPath)
+ if err != nil {
76
+ log.Fatal(err)
77
+ }
78
+ workTree = absRepoPath
79
+ gitDir = filepath.Join(absRepoPath, ".git")
80
81
82
if customConfig != "" {
0 commit comments