git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Govind Salinas" <blix@sophiasuchtig.com>
To: "Git Mailing List" <git@vger.kernel.org>
Subject: git-fetch question/bug
Date: Fri, 14 Mar 2008 00:08:01 -0500	[thread overview]
Message-ID: <5d46db230803132208r3f3f9e34q80bb9c03d65ab67c@mail.gmail.com> (raw)

Hey,

I was wrapping git-fetch when I discovered that it does not return
error when the
fetch fails due to it not being a ff...

~/Desktop/Projects/test  (test2)
govind@gnosis: 574> git fetch . remotes/origin/gitnext:test2
From .
 ! [rejected]        origin/gitnext -> test2  (non fast forward)
~/Desktop/Projects/test  (test2)
govind@gnosis: 575> echo $?
0
~/Desktop/Projects/test  (test2)
govind@gnosis: 576> git version
git version 1.5.4.3.587.g0bdd73


So, is this the expected behavior?  I expect it should return non-0
when it does not
perform the requested fetch.

If this is supposed to be this way, then sorry for the noise.

Thanks,
Govind.

             reply	other threads:[~2008-03-14  5:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-14  5:08 Govind Salinas [this message]
2008-03-14  5:27 ` git-fetch question/bug Junio C Hamano
2008-03-14  7:52   ` Jakub Narebski
2008-03-14 15:57   ` Daniel Barkalow

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=5d46db230803132208r3f3f9e34q80bb9c03d65ab67c@mail.gmail.com \
    --to=blix@sophiasuchtig.com \
    --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).