chore: unbreak existing tests

Because the user:password is no longer automatically set as upstream
origin, we have to set it manually if we want push to work.
This commit is contained in:
Gusted 2025-08-24 02:44:22 +02:00 committed by Earl Warren
commit f7fb1226a4
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
5 changed files with 16 additions and 0 deletions

View file

@ -93,6 +93,7 @@ func TestPullDiff_AGitNotEditable(t *testing.T) {
cloneURL, _ := url.Parse(clone)
cloneURL.User = url.UserPassword("user2", userPassword)
require.NoError(t, git.CloneWithArgs(t.Context(), nil, cloneURL.String(), dstPath, git.CloneRepoOptions{}))
doGitSetRemoteURL(dstPath, "origin", cloneURL)(t)
return dstPath
}