BUG: git remote show origin => error code 1
- From
Jari Aalto <jari.aalto@cante.net>
- Date
- Sep 29, 2007, 18:13 UTC
- Message-ID
- <ps01nxvd.fsf@blue.sea.net>
Consider this:
$ git remote show origin
No such remote origin $ echo $?
0Perhaps the code should return non-zero in this case, so that shell scripts could use construct:
git remote show origin; || <another action>
Jari
-- Welcome to FOSS revolution: we fix and modify until it shines