aboutsummaryrefslogtreecommitdiffstats
path: root/repository
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-06 21:42:05 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-06 21:42:05 +0200
commitf136bf6a8262a10c9b16a784ba075a88f7c14cc8 (patch)
tree63a4a17dfb9646afea14bed4b1a867125a5b4d1d /repository
parent6f1767d101ad210ba0311b8e828140da32fbcafe (diff)
downloadgit-bug-f136bf6a8262a10c9b16a784ba075a88f7c14cc8.tar.gz
cmds: various cleaning
Diffstat (limited to 'repository')
-rw-r--r--repository/git.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/repository/git.go b/repository/git.go
index 5b5cbc3d..c5dc5618 100644
--- a/repository/git.go
+++ b/repository/git.go
@@ -169,7 +169,7 @@ func (repo *GitRepo) PushRefs(remote string, refSpec string) (string, error) {
stdout, stderr, err := repo.runGitCommandRaw(nil, "push", remote, refSpec)
if err != nil {
- return stdout + stderr, fmt.Errorf("failed to push to the remote '%s': %v", remote, err)
+ return stdout + stderr, fmt.Errorf("failed to push to the remote '%s': %v", remote, stderr)
}
return stdout + stderr, nil
}