git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kacper Kornet <draenog@pld-linux.org>
To: git@vger.kernel.org
Subject: Exit code of git-ls-remote
Date: Thu, 12 May 2011 14:05:36 +0200	[thread overview]
Message-ID: <20110512120536.GA22033@camk.edu.pl> (raw)

git-ls-remote behaves differently then git-show-ref when it cannot find
any matching refs. While the latter returns non zero exit code in this
case, the former always returns 0. Is there any specific reason for this
behaviour?

-- 
  Kacper Kornet

             reply	other threads:[~2011-05-12 12:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-12 12:05 Kacper Kornet [this message]
2011-05-12 16:21 ` Exit code of git-ls-remote Junio C Hamano
2011-05-12 16:41   ` Junio C Hamano
2011-05-18 14:15     ` [RFC/PATCH] ls-remote: optionally return non-zero on non-existing refs Michael Schubert
2011-05-18 16:59       ` Thiago Farina
2011-05-18 18:28       ` Junio C Hamano
2011-05-18 20:06         ` [PATCH v2] " Michael Schubert
2011-05-18 21:19           ` Andreas Schwab
2011-05-18 21:38             ` Junio C Hamano
2011-05-18 21:53               ` Michael Schubert

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=20110512120536.GA22033@camk.edu.pl \
    --to=draenog@pld-linux.org \
    --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).