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

Re: Probably a GIT bug..

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Apr 23, 2008, 17:10 UTC
Message-ID
<alpine.LNX.1.00.0804231257300.19665@iabervon.org>
In-Reply-To
<7v63u8tt62.fsf@gitster.siamese.dyndns.org>
On Wed, 23 Apr 2008, Junio C Hamano wrote:
Show 15 quoted lines
> Tomasz bla Fortuna <bla@thera.be> writes:
> 
> > I guess that GIT should check if he can create a tree link before
> > creating a commit.
> 
> Thanks.
> 
> That's a somewhat contrived example, and I do not know how you found it.
> 
> I suspect the same breakage would trigger when you ran out of disk quota
> to write out the tree while you still have barely enough quota to create
> the commit and update the ref, which would result in corrupt repository.
> So in that sense, this breakage is more likely to bite people in reality
> than the initial reaction your test may invite which is "don't do that
> then".

make su make install git commit

and then log out from your desktop environment, and you've got objects subdirectories owned by root without realizing. Of course, you shouldn't do that, either, but it's an easier mistake than accidentally removing your own write permission to something.

	-Daniel
*This .sig left intentionally blank*
Previous: Junio C HamanoNext: Dmitry Potapov
Message 3 of 4 in “Probably a GIT bug..”
  1. Tomasz bla FortunaApr 22, 2008
  2. Junio C HamanoApr 23, 2008
  3. Daniel BarkalowApr 23, 2008
  4. Dmitry PotapovApr 23, 2008

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.