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

Re: t4216-log-bloom.sh broken ?

From
Junio C Hamano <gitster@pobox.com>
Date
May 2, 2024, 19:55 UTC
Message-ID
<xmqq7cgcdm4f.fsf@gitster.g>
In-Reply-To
<20240502192622.GA1841@szeder.dev>
SZEDER Gábor <szeder.dev@gmail.com> writes:
Show 14 quoted lines
>> Yes, different mac, different MacOs, different $PATH probably.
>> ...
>
> 'mv' in macOS doesn't conform to POSIX, and asks for confirmation when
> the destination exists (is read-only?) even without '-i' and even when
> its stdin is not a terminal, which it won't get as its stdin in our
> test suite is redirected from /dev/null.
>
> This is a recurring issue, see e.g.:
>
>   https://public-inbox.org/git/20180616143513.10086-1-szeder.dev@gmail.com/
>   c20d4d702f (t1450: use "mv -f" within loose object directory, 2017-01-24)
>
> 'mv -f' did the trick in the past.

Hmph, while that is a good data point to explain why this one fails, it is a very unsatisfactory workaround, compared to a world where we do not have to worry about such a broken mv (perhaps by noticing a broken macOS /bin/mv and automatically doing mv () { mv -f "$@" } for them).

I am curious what other differences Torsten will find out between good macs and bad ones. Perhaps we can narrow down the bad apples?

Previous: SZEDER GáborNext: Junio C Hamano
Message 7 of 12 in “[ANNOUNCE] Git v2.45.0”
  1. Junio C HamanoApr 29, 2024
  2. rsbecker@nexbridge.comMay 1, 2024
  3. t4216-log-bloom.sh broken ?Torsten Bögershausen, May 2, 2024
  4. Junio C HamanoMay 2, 2024
  5. Torsten BögershausenMay 2, 2024
  6. SZEDER GáborMay 2, 2024
  7. Junio C HamanoMay 2, 2024
  8. Junio C HamanoMay 2, 2024
  9. Junio C HamanoMay 2, 2024
  10. Torsten BögershausenMay 2, 2024
  11. Junio C HamanoMay 2, 2024
  12. Junio C HamanoMay 2, 2024

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.