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
transcrypt --version and transcrypt --help should also work outside git repositories, as they're frequently used to test whether the script is installed correctly. They give no output, though.
Example terminal session:
➜ /tmp mkdir test
➜ /tmp cdtest
➜ test transcrypt --version
➜ test git init
Initialized empty Git repository in /tmp/test/.git/
➜ test git:(master) transcrypt --version
transcrypt 2.0.0
Same applies to transcrypt --help.
Expected behavior: version also displayed outside an initialized git repository.
The text was updated successfully, but these errors were encountered:
I took a quick look, and this is happening due to errexit being set at the start of the script. My personal opinion is that errexit shouldn't be used at all, and that proper error handling should be relied on instead. It looks like transcrypt has pretty good error handling throughout, so it may be fine to remove errexit entirely. Alternatively, turning on could be deferred until after run_safety_checks.
transcrypt --version
andtranscrypt --help
should also work outside git repositories, as they're frequently used to test whether the script is installed correctly. They give no output, though.Example terminal session:
Same applies to
transcrypt --help
.Expected behavior: version also displayed outside an initialized git repository.
The text was updated successfully, but these errors were encountered: