Git development
 help / color / mirror / Atom feed
* [PATCH] Fix git-checkout-script exit status
@ 2005-08-23 21:03 tony.luck
  0 siblings, 0 replies; only message in thread
From: tony.luck @ 2005-08-23 21:03 UTC (permalink / raw)
  To: git

Sometimes the git-read-tree in git-checkout-script fails for me.
Make sure that the failed status is passed up to caller.

Signed-off-by: Tony Luck <tony.luck@intel.com>

---

diff --git a/git-checkout-script b/git-checkout-script
--- a/git-checkout-script
+++ b/git-checkout-script
@@ -72,4 +72,6 @@ if [ "$?" -eq 0 ]; then
 	fi
 	[ "$branch" ] && ln -sf "refs/heads/$branch" "$GIT_DIR/HEAD"
 	rm -f "$GIT_DIR/MERGE_HEAD"
+else
+	exit 1
 fi

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-08-23 21:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-23 21:03 [PATCH] Fix git-checkout-script exit status tony.luck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox