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*