From f136bf6a8262a10c9b16a784ba075a88f7c14cc8 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Thu, 6 Sep 2018 21:42:05 +0200 Subject: cmds: various cleaning --- repository/git.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'repository/git.go') 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 } -- cgit