diff --git a/reposerver/repository/repository_test.go b/reposerver/repository/repository_test.go index 49c5ec9a30aa..daa45f4dc3d9 100644 --- a/reposerver/repository/repository_test.go +++ b/reposerver/repository/repository_test.go @@ -1792,7 +1792,7 @@ func TestCheckoutRevision(t *testing.T) { // Create a repo such that one commit is on a non-standard ref _and nowhere else_. This is meant to simulate, for // example, a GitHub ref for a pull into one repo from a fork of that repo. run(t, sourceRepoPath, "git", "init") - run(t, sourceRepoPath, "git", "checkout", "-b", "main") // make sure there's a main branch to switch back to + run(t, sourceRepoPath, "git", "checkout", "-b", "main") // make sure there's a main branch to switch back to run(t, sourceRepoPath, "git", "commit", "-m", "empty", "--allow-empty") run(t, sourceRepoPath, "git", "checkout", "-b", "branch") run(t, sourceRepoPath, "git", "commit", "-m", "empty", "--allow-empty")