mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
work with absolute paths when invoked with --path
This commit is contained in:
parent
2436ff197a
commit
4744b39f03
8
main.go
8
main.go
|
|
@ -71,8 +71,12 @@ func main() {
|
|||
log.Fatal("--path option is incompatible with the --work-tree and --git-dir options")
|
||||
}
|
||||
|
||||
workTree = repoPath
|
||||
gitDir = filepath.Join(repoPath, ".git")
|
||||
absRepoPath, err := filepath.Abs(repoPath)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
workTree = absRepoPath
|
||||
gitDir = filepath.Join(absRepoPath, ".git")
|
||||
}
|
||||
|
||||
if customConfig != "" {
|
||||
|
|
|
|||
Loading…
Reference in a new issue