Skip to content

Commit b18aeb6

Browse files
committed
test: make share push retry portable
1 parent 14b17c0 commit b18aeb6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/share/share_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func TestPushRebasesRemoteReadmeUpdates(t *testing.T) {
177177
require.NoError(t, Push(ctx, opts))
178178

179179
reporter := filepath.Join(dir, "reporter")
180-
require.NoError(t, run(ctx, dir, "git", "clone", remote, reporter))
180+
require.NoError(t, run(ctx, dir, "git", "clone", "--branch", "main", remote, reporter))
181181
configureGitUser(t, reporter)
182182
require.NoError(t, os.WriteFile(filepath.Join(reporter, "README.md"), []byte("report: first\n\nfield notes: fresh\n"), 0o600))
183183
require.NoError(t, run(ctx, reporter, "git", "commit", "-am", "docs: update field notes"))

0 commit comments

Comments
 (0)