Thread (4 messages) flat view 4 messages, 3 authors, 2016-06-15

Re: git pull fails to exit with non-zero status after fatal error

From: Shawn O. Pearce <hidden>
Date: 2016-06-15 22:42:58

Possibly related (same subject, not in this thread)

Johannes Schindelin [off-list ref] wrote:
On Sat, 3 Mar 2007, Junio C Hamano wrote:
quoted
-	finish "$new_head" "Fast forward"
+	finish "$new_head" "Fast forward" || exit
Doesn't "exit" default to "exit 0"?
No, it carries the exit status of the prior failed command if the
prior command failed.  ;-)

For what its worth, I learned that only while hacking on git-merge.
I think it is highly non-obvious.

-- 
Shawn.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help