Skip to content

Commit 40d0e0c

Browse files
committed
Merge pull request #313 from kmala/recieve
fix(git-push):handle the errors during git push
2 parents e53cd9c + eacaf38 commit 40d0e0c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pkg/git/git.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import (
2727
//
2828
// - .GitHome: the path to Git's home directory
2929
const preReceiveHookTplStr = `#!/bin/bash
30+
set -eo pipefail
3031
strip_remote_prefix() {
3132
stdbuf -i0 -o0 -e0 sed "s/^/"$'\e[1G'"/"
3233
}

0 commit comments

Comments
 (0)