parent
9947e7c707
commit
9f4056f34d
1 changed files with 0 additions and 3 deletions
3
main.go
3
main.go
|
@ -123,12 +123,9 @@ func Push(
|
||||||
auth *githttp.BasicAuth,
|
auth *githttp.BasicAuth,
|
||||||
remote *git.Remote,
|
remote *git.Remote,
|
||||||
) error {
|
) error {
|
||||||
refspec := fmt.Sprintf("+refs/heads/*:refs/remotes/%s/*", DefaultRemoteName)
|
|
||||||
|
|
||||||
return remote.Push(&git.PushOptions{
|
return remote.Push(&git.PushOptions{
|
||||||
RemoteName: DefaultRemoteName,
|
RemoteName: DefaultRemoteName,
|
||||||
Auth: auth,
|
Auth: auth,
|
||||||
RefSpecs: []config.RefSpec { config.RefSpec(refspec) },
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue