git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Milde <daniel@milde.cz>
To: git@vger.kernel.org
Subject: git submodule return status
Date: Thu, 28 Jun 2012 10:28:00 +0200	[thread overview]
Message-ID: <1340872080.2103.92.camel@athena.dnet> (raw)

Hello,
if command git submodule update fails, return status is not set
properly.

Example:
$ git submodule update unknown
error: pathspec 'unknown' did not match any file(s) known to git.
Did you forget to 'git add'?
error: pathspec 'unknown' did not match any file(s) known to git.
Did you forget to 'git add'?
$ echo $?
0

I suppose the exit status should be 1 or something else, but not 0.

Best regards
Daniel Milde

             reply	other threads:[~2012-06-28  8:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-28  8:28 Daniel Milde [this message]
2012-08-09 20:03 ` [PATCH] Let submodule command exit with error status if path does not exist Heiko Voigt
2012-08-09 20:42   ` Junio C Hamano
2012-08-11  6:49     ` [PATCH v2] " Heiko Voigt
2012-08-12  5:43       ` Junio C Hamano
2012-08-13 16:39         ` Heiko Voigt
2012-08-13 17:11           ` Junio C Hamano
2012-08-14 20:35             ` [PATCH v3] " Heiko Voigt
2012-08-14 20:59               ` Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1340872080.2103.92.camel@athena.dnet \
    --to=daniel@milde.cz \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).