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

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

From
LSLarry Streepy <larry@lightspeed.com>
Date
Mar 3, 2007, 16:45 UTC
Message-ID
<45E9A641.8020002@lightspeed.com>

We have just upgraded to 1.5 (don't know if this is specific to 1.5, but just in case). When I perform a git-pull on a working repo that has a modified file, git pull refuses to do the pull, as shown below:

$ git pull Updating b5d9263..506b347 tools/Pvt/Pvt.py: needs update fatal: Entry 'tools/Pvt/Pvt.py' not uptodate. Cannot merge. $ echo $? 0

Notice the exit status of 0. The driver scripts I use rely on a non-zero status to send me email when the git-pull fails, but this case eludes detection.

I'm assuming this is a bug, but if it's intended behavior I'd like to understand why it would use a 0 exit status after a issuing a fatal error.

Thanks, Larry.

Next: Johannes Schindelin
Message 1 of 8 in “git pull fails to exit with non-zero status after fatal error”
  1. Larry StreepyMar 3, 2007
  2. Johannes SchindelinMar 3, 2007
  3. Larry StreepyMar 3, 2007
  4. Junio C HamanoMar 3, 2007
  5. Johannes SchindelinMar 3, 2007
  6. Shawn O. PearceMar 3, 2007
  7. Junio C HamanoMar 3, 2007
  8. Johannes SchindelinMar 3, 2007

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.