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

Re: Bug encountered while comitting

From
MKMatthias Kestenholz <lists@irregular.ch>
Date
Mar 25, 2006, 01:15 UTC
Message-ID
<20060325011530.GA25951@spinlock.ch>
In-Reply-To
<442449E1.5060007@op5.se>
* Andreas Ericsson (ae@op5.se) wrote:
Show 8 quoted lines
> Matthias Kestenholz wrote:
> >
> >The PHP script created directories under .git/objects
> 
> 
> Ouch... You're not really supposed to do that. The proper thing to do is 
> to do things in the working tree and commit them to git later.
> 

I think I did not express myself clearly. The PHP Script executes git commands which in turn create or modify the mentioned directories. I do not create them myself by hand.

Show 6 quoted lines
> >When I tried to commit, I got a message saying "Unable to write sha1
> >filename".
> >
> 
> What file were you trying to write?
> 

Some file I was updating (in this case, a file holding some wiki content)

Show 7 quoted lines
> >The result was, that only part of the commit was recorded and that I
> >experienced repository corruption. refs/heads/master pointed to a
> >non-existant object.
> >
> 
> Did you use git tools to update .git/refs/heads/master ?
> 
Yes.
Show 8 quoted lines
> 
> >The expected behavior would have been an error message telling me I
> >had insufficient write privileges and surely no repository
> >corruption.
> >
> 
> Didn't you get the strerror(3) message from that? If so, I'd consider it 
> a bug.

As I (only now) wrote in the other email, I got the "Permission denied" message, and that was a sufficient hint what was wrong.

-- 
:wq
Previous: Andreas EricssonNext: Junio C Hamano
Message 3 of 7 in “Bug encountered while comitting”
  1. Matthias KestenholzMar 24, 2006
  2. Andreas EricssonMar 24, 2006
  3. Matthias KestenholzMar 25, 2006
  4. Junio C HamanoMar 24, 2006
  5. Matthias KestenholzMar 25, 2006
  6. Junio C HamanoMar 25, 2006
  7. Matthias KestenholzMar 25, 2006

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.