git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-fetch question/bug
@ 2008-03-14  5:08 Govind Salinas
  2008-03-14  5:27 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Govind Salinas @ 2008-03-14  5:08 UTC (permalink / raw)
  To: Git Mailing List

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.

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

end of thread, other threads:[~2008-03-14 15:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-14  5:08 git-fetch question/bug Govind Salinas
2008-03-14  5:27 ` Junio C Hamano
2008-03-14  7:52   ` Jakub Narebski
2008-03-14 15:57   ` Daniel Barkalow

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).