Skip to content

Commit 3b926ef

Browse files
authored
test: update e2e test to fix gitlab push error (#1153) (#1154)
Gitlab doesn't allow pushing a branch with `refs/remotes/upstream/*`. It failed with a `deny updating a hidden ref` error. This commit changes the remote branch to just `upstream/main`, which is `refs/heads/upstream/main`.
1 parent 3253243 commit 3b926ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

e2e/testcases/git_sync_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func TestMultipleRemoteBranchesOutOfSync(t *testing.T) {
3535
}
3636

3737
nt.T.Log("Create an extra remote tracking branch")
38-
nt.Must(nt.RootRepos[configsync.RootSyncName].Push("HEAD:refs/remotes/upstream/main"))
38+
nt.Must(nt.RootRepos[configsync.RootSyncName].Push("HEAD:upstream/main"))
3939

4040
nt.T.Logf("Update the remote main branch by adding a test namespace")
4141
nt.Must(nt.RootRepos[configsync.RootSyncName].Add("acme/namespaces/hello/ns.yaml", fake.NamespaceObject("hello")))

0 commit comments

Comments
 (0)