git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* BUG: git remote show origin => error code 1
@ 2007-09-29 18:13 Jari Aalto
  2007-09-29 22:28 ` Junio C Hamano
  2007-09-30  6:18 ` [PATCH] prune, rm, show remote: exit with error code 1 on failure Jari Aalto
  0 siblings, 2 replies; 4+ messages in thread
From: Jari Aalto @ 2007-09-29 18:13 UTC (permalink / raw)
  To: git


Consider this:

    $ git remote show origin
    No such remote origin

    $ echo $?
    0

Perhaps 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-09-30  9:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-29 18:13 BUG: git remote show origin => error code 1 Jari Aalto
2007-09-29 22:28 ` Junio C Hamano
2007-09-30  6:18 ` [PATCH] prune, rm, show remote: exit with error code 1 on failure Jari Aalto
2007-09-30  9:54   ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).