aboutsummaryrefslogtreecommitdiffstats
path: root/repository
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-10-24 22:19:56 +0200
committerMichael Muré <batolettre@gmail.com>2020-10-24 22:19:56 +0200
commit064a96f808d0affc3240ab28036df69d95496335 (patch)
tree4051458c179580ad8ff25d6483883c6481f4b487 /repository
parent88126f9a64d05d17d193197cf237c6ce4e300899 (diff)
downloadgit-bug-064a96f808d0affc3240ab28036df69d95496335.tar.gz
repository: fix incorrect git dir on the git CLI implementation
Diffstat (limited to 'repository')
-rw-r--r--repository/git.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/repository/git.go b/repository/git.go
index dba2d29d..504cdd89 100644
--- a/repository/git.go
+++ b/repository/git.go
@@ -45,7 +45,7 @@ func NewGitRepo(path string, clockLoaders []ClockLoader) (*GitRepo, error) {
}
// Check the repo and retrieve the root path
- stdout, err := repo.runGitCommand("rev-parse", "--git-dir")
+ stdout, err := repo.runGitCommand("rev-parse", "--absolute-git-dir")
// Now dir is fetched with "git rev-parse --git-dir". May be it can
// still return nothing in some cases. Then empty stdout check is