git-fetch question/bug
- From
- Govind Salinas <blix@sophiasuchtig.com>
- Date
- Mar 14, 2008, 05:08 UTC
- Message-ID
- <5d46db230803132208r3f3f9e34q80bb9c03d65ab67c@mail.gmail.com>
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.