()
| 381 | } |
| 382 | |
| 383 | func (c *Configuration) CurrentRemoteRef() (*Ref, error) { |
| 384 | remoteref, err := c.RemoteRefNameForCurrentBranch() |
| 385 | if err != nil { |
| 386 | return nil, err |
| 387 | } |
| 388 | |
| 389 | return ResolveRef(remoteref) |
| 390 | } |
| 391 | |
| 392 | // RemoteRefForCurrentBranch returns the full remote ref (refs/remotes/{remote}/{remotebranch}) |
| 393 | // that the current branch is tracking. |