remove explicit refspec

This commit is contained in:
Tim Schubert 2022-06-02 19:24:38 +02:00
parent de4a9701b3
commit 5e96daaec2
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/heads/*")
return remote.Push(&git.PushOptions{
RemoteName: DefaultRemoteName,
Auth: auth,
RefSpecs: []config.RefSpec { config.RefSpec(refspec) },
})
}