mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-27 05:38:06 +08:00
build: set remote origin url
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
(cherry picked from commit c1058c17aa
)
This commit is contained in:
@@ -44,9 +44,9 @@ func GitAdd(c *Git, tb testing.TB, file string) {
|
||||
require.NoError(tb, err)
|
||||
}
|
||||
|
||||
func GitSetRemote(c *Git, tb testing.TB, url string) {
|
||||
func GitSetRemote(c *Git, tb testing.TB, name string, url string) {
|
||||
tb.Helper()
|
||||
_, err := fakeGit(c, "remote", "add", "origin", url)
|
||||
_, err := fakeGit(c, "remote", "add", name, url)
|
||||
require.NoError(tb, err)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user