Revert "use refspec to set remote"

This reverts commit 9947e7c707.
This commit is contained in:
Tim Schubert 2022-05-31 20:13:59 +02:00
parent 9947e7c707
commit 9f4056f34d
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA

View file

@ -123,12 +123,9 @@ func Push(
auth *githttp.BasicAuth,
remote *git.Remote,
) error {
refspec := fmt.Sprintf("+refs/heads/*:refs/remotes/%s/*", DefaultRemoteName)
return remote.Push(&git.PushOptions{
RemoteName: DefaultRemoteName,
Auth: auth,
RefSpecs: []config.RefSpec { config.RefSpec(refspec) },
})
}