Make yadm exit with the return value of git.

This commit is contained in:
Uroš Golja 2016-12-24 01:12:35 +01:00
parent 05ed83ea34
commit 763146043e
1 changed files with 4 additions and 2 deletions

6
yadm
View File

@ -86,13 +86,14 @@ function main() {
else else
#; any other commands are simply passed through to git #; any other commands are simply passed through to git
git_command "$@" git_command "$@"
local git_retval="$?"
fi fi
#; process automatic events #; process automatic events
auto_alt auto_alt
auto_perms auto_perms
exit 0 exit $git_retval
} }
@ -299,9 +300,10 @@ function git_command() {
#; pass commands through to git #; pass commands through to git
git "$@" git "$@"
local git_retval="$?"
CHANGES_POSSIBLE=1 CHANGES_POSSIBLE=1
return $git_retval
} }
function help() { function help() {