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

Re: What's cooking in git.git (Oct 2026, #06)

From
Patrick Steinhardt <ps@pks.im>
Date
Oct 22, 2026, 06:36 UTC
Message-ID
<atmvASAoaCIpc_ca@pks.im>
In-Reply-To
<20261022043758.GA31562@tb-raspi4>
On Thu, Oct 22, 2026 at 06:37:58AM +0200, Torsten Bögershausen wrote:
Show 31 quoted lines
> On Wed, Oct 21, 2026 at 10:46:53AM -0700, Junio C Hamano wrote:
> > Patrick Steinhardt <ps@pks.im> writes:
> > 
> > > diff --git a/t/t1450-fsck.sh b/t/t1450-fsck.sh
> > > index 16cc5d5dcb..a19bb27db7 100755
> > > --- a/t/t1450-fsck.sh
> > > +++ b/t/t1450-fsck.sh
> > > @@ -544,6 +544,7 @@ test_expect_success 'rev-list --verify-objects with truncated loose blob' ' 
> > >  		cd truncated-blob &&
> > >  		blob=$(test-tool genrandom one 5k | git hash-object -t blob -w --stdin) &&
> > >  		obj=.git/objects/$(test_oid_to_path $blob) &&
> > > +		chmod +w $obj &&
> > >  		# Truncate the loose blob such that its header can still be
> > >  		# parsed, but reading the object data fails mid-stream.
> > >
> > > Ah, right, that makes sense. Makes me wonder why none of our tests in CI
> > > hit this error. Weird.
> > 
> > Not just CI.  I haven't seen this fail locally, either.  Is the
> > breakage Torsten reports that the later step
> > 
> > 	mv obj.tmp "$obj"
> > 
> > fail when $obj" is not writable?  That does not make sense to me.
> > 
> > > Junio, as this patch series is already in "next", do you want me to send
> > > a patch on top to fix it or shall I send a new version?
> 
> After a (very short) digging:
> It is an old version of bash that was shipped with MacOs:
>  GNU bash, version 5.3.15(1)-release (x86_64-apple-darwin20.6.0)
This release isn't old at all, it's from this year.
> My explanation is that this shell tries to be nice to the user:
> A read-only file sould not be "moved over" by a different file.
> I can probably creata a proper patch the next days - or review
> a patch from someone - whatever is faster.

But does that explanation make sense? If it's mv(1) that fails then Bash is not involved in that decision at all, as mv(1) is part of the BSD utilities.

Could you maybe provide the trace to see what exactly is failing? That might enlighten us.

Thanks!
Patrick
Previous: Torsten BögershausenNext: tboegi@web.de
Message 6 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.