summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9e3e2a5)
raw | patch | inline | side by side (parent: 9e3e2a5)
author | tony.luck@intel.com <tony.luck@intel.com> | |
Tue, 23 Aug 2005 21:03:14 +0000 (14:03 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 25 Aug 2005 01:53:15 +0000 (18:53 -0700) |
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>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Make sure that the failed status is passed up to caller.
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-checkout-script | patch | blob | history |
diff --git a/git-checkout-script b/git-checkout-script
index a37740713ed747a18b7ee5415e41e5bd57834c48..9feff149acc87326e13f96db17257235e78c42db 100755 (executable)
--- a/git-checkout-script
+++ b/git-checkout-script
fi
[ "$branch" ] && ln -sf "refs/heads/$branch" "$GIT_DIR/HEAD"
rm -f "$GIT_DIR/MERGE_HEAD"
+else
+ exit 1
fi