You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that vcsh does not catch the hooks exit value. So it's not possible to stop vcsh if a hook fails.
For instance I would use that functionality if a pre-enter hook would fail to do some preparation work, to avoid entering the repository in that case.
Possible solutions, in order of preference:
Use set -e in vcsh and handle special cases when errors should really be ignored
catch the exit value explicitly in hook()
Source hooks as suggested in Source hooks instead of calling them? #68. However I'd advise against that: having hooks as child processes like it is now, allows to write them in any programming language.
The text was updated successfully, but these errors were encountered:
I noticed that vcsh does not catch the hooks exit value. So it's not possible to stop vcsh if a hook fails.
For instance I would use that functionality if a
pre-enter
hook would fail to do some preparation work, to avoid entering the repository in that case.Possible solutions, in order of preference:
set -e
in vcsh and handle special cases when errors should really be ignoredhook()
The text was updated successfully, but these errors were encountered: