aboutsummaryrefslogtreecommitdiffstats
path: root/repository/git.go
diff options
context:
space:
mode:
Diffstat (limited to 'repository/git.go')
-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