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

Re: Git bisect run should check for the existence of the script

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 15, 2020, 14:55 UTC
Message-ID
<xmqq1rlclte2.fsf@gitster.c.googlers.com>
In-Reply-To
<9cea8076-be96-19c5-c368-288193daedd8@abou-samra.fr>
Jean Abou Samra <jean@abou-samra.fr> writes:
Show 9 quoted lines
> $ git bisect run ./non-existent.sh
> running ./non-existent.sh
> /usr/lib/git-core/git-bisect: 247: ./non-existent.sh: not found
> Bisecting: 2 revisions left to test after this (roughly 1 step)
> [6fc732a2116e2c42b0431bb7e2a21719351af755] Fix typo in docs: 'created
> by th' -> 'created by the' (GH-21384)
> running ./non-existent.sh
> /usr/lib/git-core/git-bisect: 247: ./non-existent.sh: not found
> Bisecting: 0 revisions left to test after this (roughly 0 steps)

Yes, it would be nice if "git bisect run" can reliably tell that it got a "not found" error and not a "test performed by the script did not pass" and stop at the first failure.

On the other hand, the "./non-existent.sh" script could be part of the tracked contents (i.e. some revisions have it and the working tree has it when they get checked out, some revisions don't and the working tree does not have it), and the user is trying to find the first revision that stopped having a working script in its tree. In such a case, the script that does not exist and the script that fails need to be treated the same way by "git bisect run" as failures.

So... I dunno.
Previous: Jean Abou SamraNext: Jean Abou Samra
Message 2 of 5 in “Git bisect run should check for the existence of the script”
  1. Jean Abou SamraJul 15, 2020
  2. Junio C HamanoJul 15, 2020
  3. Jean Abou SamraJul 17, 2020
  4. Junio C HamanoJul 17, 2020
  5. Junio C HamanoJul 17, 2020

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.