Skip to content
This repository was archived by the owner on Aug 24, 2024. It is now read-only.

Commit fce165b

Browse files
committed
migration2: fix clocks being created in the wrong place
1 parent d4da5d2 commit fce165b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

migration2/after/repository/git.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func NewGitRepo(path string, clockLoaders []ClockLoader) (*GitRepo, error) {
4545
}
4646

4747
// Check the repo and retrieve the root path
48-
stdout, err := repo.runGitCommand("rev-parse", "--git-dir")
48+
stdout, err := repo.runGitCommand("rev-parse", "--absolute-git-dir")
4949

5050
// Now dir is fetched with "git rev-parse --git-dir". May be it can
5151
// still return nothing in some cases. Then empty stdout check is

migration2/before/repository/git.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func NewGitRepo(path string, witnesser Witnesser) (*GitRepo, error) {
9797
repo := &GitRepo{Path: path}
9898

9999
// Check the repo and retrieve the root path
100-
stdout, err := repo.runGitCommand("rev-parse", "--git-dir")
100+
stdout, err := repo.runGitCommand("rev-parse", "--absolute-git-dir")
101101

102102
// Now dir is fetched with "git rev-parse --git-dir". May be it can
103103
// still return nothing in some cases. Then empty stdout check is

0 commit comments

Comments
 (0)