diff options
author | Michael Muré <batolettre@gmail.com> | 2018-09-06 21:42:05 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-09-06 21:42:05 +0200 |
commit | f136bf6a8262a10c9b16a784ba075a88f7c14cc8 (patch) | |
tree | 63a4a17dfb9646afea14bed4b1a867125a5b4d1d /repository/git.go | |
parent | 6f1767d101ad210ba0311b8e828140da32fbcafe (diff) | |
download | git-bug-f136bf6a8262a10c9b16a784ba075a88f7c14cc8.tar.gz |
cmds: various cleaning
Diffstat (limited to 'repository/git.go')
-rw-r--r-- | repository/git.go | 2 |
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 } |