git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Fix git-checkout-script exit status

From
tony.luck@intel.com <tony.luck@intel.com>
Date
Aug 23, 2005, 21:03 UTC
Message-ID
<200508232103.j7NL3EV4025364@agluck-lia64.sc.intel.com>

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
Message 1 of 1 in “Fix git-checkout-script exit status”
  1. Fix git-checkout-script exit statustony.luck@intel.com, Aug 23, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.