From: Richard Hartmann Date: Sun, 27 Aug 2017 19:28:10 +0000 (+0200) Subject: Merge pull request #224 from danielshahaf/completion-fix-error-code-v1 X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/6b5ef0253b6858e3cb4fd265d2f7d99b597065ee Merge pull request #224 from danielshahaf/completion-fix-error-code-v1 completion: Return the correct error code from __vcsh_*. --- 6b5ef0253b6858e3cb4fd265d2f7d99b597065ee diff --cc _vcsh index 6880f72,77ff976..1661e19 --- a/_vcsh +++ b/_vcsh @@@ -138,11 -135,10 +138,11 @@@ function _vcsh () if ! (( ${+functions[_vcsh-$vcshcommand]} )); then # There is no handler function, so this is probably the name # of a repository. Act accordingly. - _dispatch git git + # FIXME: this may want to use '_dispatch vcsh git' + GIT_DIR=$VCSH_REPO_D/$words[1].git _dispatch git git else curcontext="${curcontext%:*:*}:vcsh-${vcshcommand}:" - _call_function ret _vcsh-${vcshcommand} + _call_function ret _vcsh-${vcshcommand} && (( ret )) fi fi fi