()
| 31 | } |
| 32 | |
| 33 | func (u *RefUpdate) RemoteRef() *Ref { |
| 34 | if u.remoteRef == nil { |
| 35 | u.remoteRef = defaultRemoteRef(u.git, u.remote, u.LocalRef()) |
| 36 | } |
| 37 | return u.remoteRef |
| 38 | } |
| 39 | |
| 40 | // defaultRemoteRef returns the remote ref receiving a push based on the current |
| 41 | // repository config and local ref being pushed. |