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

Re: [BUG] log: Non-zero exit code?

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
Aug 21, 2010, 07:46 UTC
Message-ID
<20100821074633.GA31130@kytes>
In-Reply-To
<4C6F8164.3020005@lsrfire.ath.cx>
Hi René,
René Scharfe writes:
> You can leave out the test line entirely, as test_expect_success already
> checks for an exit code of zero.

Right. I should have actually read test-lib.sh before submitting a test :p

> The test passes for me with 1.7.2.2, next and pu.  Which version of git
> do you use?
I can reproduce this on the latest `master` and `pu`.
> Error code 141 smells like the pager.  Can you reproduce the problem
> without the pager, i.e. like this?
> 
> 	git --no-pager log
Indeed, it's a pager problem as Ævar pointed out on IRC. $(git
--no-pager log) and $(GIT_PAGER='perl -pe ""' git log) return
0. Something in `less` changed?
-- Ram
Previous: René Scharfe
Message 4 of 4 in “[BUG] log: Non-zero exit code?”
  1. Ramkumar RamachandraAug 21, 2010
  2. Ramkumar RamachandraAug 21, 2010
  3. René ScharfeAug 21, 2010
  4. Ramkumar RamachandraAug 21, 2010

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.