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

Re: [PATCH v2 1/1] t1450: use mv -f when overwriting a read only file

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 25, 2026, 16:47 UTC
Message-ID
<xmqqv76pybg8.fsf@gitster.g>
In-Reply-To
<20261025090242.GA25750@tb-raspi4>
Torsten Bögershausen <tboegi@web.de> writes:
> Thanks as well from my side - I will wait a little while before
> sending out v3

Besides typofixes, I wonder if we should tighten the explanation while keeping only the more important bits, perhaps like

    t1450: use 'mv -f' when overwriting a read-only file
    Test case 38 in t/t1450-fsck.sh ("rev-list --verify-objects with
    truncated loose blob") replaces a loose blob with a truncated
    version using `mv obj.tmp "$obj"`.
    Because Git creates loose objects as read-only files, this step
    attempts to overwrite a read-only file. When running the test
    interactively, older versions of macOS `mv(1)` (prior to 12.3)
    will prompt the user for confirmation, causing the test to hang
    or fail.
    Use `mv -f` to force the overwrite and avoid the interactive
    prompt.

which captures that this is the interactive support of "mv" kicking in, why the files we replace are read-only, and the fact that mv has been fixed since macOS 12.3 (taken from Tuomas's reply).

Thanks.
Previous: Torsten BögershausenNext: tboegi@web.de
Message 14 of 15 in “What's cooking in git.git (Oct 2026, #06)”
  1. Junio C HamanoOct 16, 2026
  2. Torsten BögershausenOct 20, 2026
  3. Patrick SteinhardtOct 21, 2026
  4. Junio C HamanoOct 21, 2026
  5. Torsten BögershausenOct 22, 2026
  6. Patrick SteinhardtOct 22, 2026
  7. 1/1 t1450: use mv -f when overwriting a read only filetboegi@web.de, Oct 24, 2026
  8. Tuomas AholaOct 24, 2026
  9. SZEDER GáborOct 24, 2026
  10. Junio C HamanoOct 25, 2026
  11. 1/1 t1450: use mv -f when overwriting a read only filetboegi@web.de, Oct 25, 2026
  12. Tuomas AholaOct 25, 2026
  13. Torsten BögershausenOct 25, 2026
  14. Junio C HamanoOct 25, 2026
  15. 1/1 t1450: use 'mv -f' when overwriting a read-only filetboegi@web.de, Oct 25, 2026

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.