Skip to content

Commit a71418b

Browse files
Stabilize git test remote HEAD on CI
Co-authored-by: Andrew <andrewxhill@gmail.com>
1 parent 7a7fd08 commit a71418b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

internal/git/git_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ func TestBranchStatusReportsExactAheadBehindCounts(t *testing.T) {
2323
runGitCommand(t, repoRoot, "git", "commit", "-m", "initial")
2424
runGitCommand(t, repoRoot, "git", "remote", "add", "origin", remoteDir)
2525
runGitCommand(t, repoRoot, "git", "push", "-u", "origin", "main")
26+
runGitCommand(t, remoteDir, "git", "symbolic-ref", "HEAD", "refs/heads/main")
2627

2728
peerClone := filepath.Join(t.TempDir(), "peer")
2829
runGitCommand(t, t.TempDir(), "git", "clone", remoteDir, peerClone)

0 commit comments

Comments
 (0)