6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-09 22:44:16 +00:00

Refactor tests by removing redundant TestRepo struct

This commit is contained in:
Grzegorz Dlugoszewski
2020-05-29 10:11:08 +02:00
parent 0e551ea342
commit 3335c81aa4
5 changed files with 135 additions and 160 deletions

View File

@@ -129,7 +129,7 @@ func (r *Repo) newBranchStatus(branch string) (*BranchStatus, error) {
//
// Information about upstream is taken from .git/config file.
// If a branch has an upstream, there's a [branch] section in the file with two fields:
// "remote" - name of the remote containing upstreamn branch (or "." if upstream is a local branch)
// "remote" - name of the remote containing upstream branch (or "." if upstream is a local branch)
// "merge" - full ref name of the upstream branch (eg, ref/heads/master)
func (r *Repo) upstream(branch string) (string, error) {
cfg, err := r.repo.Config()