Make yadm exit with the return value of git.
This commit is contained in:
parent
05ed83ea34
commit
763146043e
1 changed files with 4 additions and 2 deletions
6
yadm
6
yadm
|
@ -86,13 +86,14 @@ function main() {
|
|||
else
|
||||
#; any other commands are simply passed through to git
|
||||
git_command "$@"
|
||||
local git_retval="$?"
|
||||
fi
|
||||
|
||||
#; process automatic events
|
||||
auto_alt
|
||||
auto_perms
|
||||
|
||||
exit 0
|
||||
exit $git_retval
|
||||
|
||||
}
|
||||
|
||||
|
@ -299,9 +300,10 @@ function git_command() {
|
|||
|
||||
#; pass commands through to git
|
||||
git "$@"
|
||||
local git_retval="$?"
|
||||
|
||||
CHANGES_POSSIBLE=1
|
||||
|
||||
return $git_retval
|
||||
}
|
||||
|
||||
function help() {
|
||||
|
|
Loading…
Reference in a new issue