Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/git/gittest/repo.go')
-rw-r--r--internal/git/gittest/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/git/gittest/repo.go b/internal/git/gittest/repo.go
index 1f060b4ca..26058d503 100644
--- a/internal/git/gittest/repo.go
+++ b/internal/git/gittest/repo.go
@@ -173,7 +173,7 @@ func BundleTestRepo(t testing.TB, cfg config.Cfg, sourceRepo, bundlePath string,
func ChecksumTestRepo(t testing.TB, cfg config.Cfg, sourceRepo string) *git.Checksum {
var checksum git.Checksum
repoPath := testRepositoryPath(t, sourceRepo)
- lines := bytes.Split(Exec(t, cfg, "-C", repoPath, "show-ref"), []byte("\n"))
+ lines := bytes.Split(Exec(t, cfg, "-C", repoPath, "show-ref", "--head"), []byte("\n"))
for _, line := range lines {
checksum.AddBytes(line)
}