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

Bug encountered while comitting

From
MKMatthias Kestenholz <lists@irregular.ch>
Date
Mar 24, 2006, 18:39 UTC
Message-ID
<20060324183951.GA23193@spinlock.ch>
Hello list,

I don't know if this is the right place to report a bug, but I'll just try and see what comes back.

I am trying to build a Wiki [1] using PHP, a hacked version of Markdown, and git for content tracking. I use the git core plumbing to do the history work.

The PHP script created directories under .git/objects which were only writable by www-data. There were other directories which were owned by user mk and group www-data, and they were group writable.

So, I had write access to only a part of the .git directory.

When I tried to commit, I got a message saying "Unable to write sha1 filename".

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.

The expected behavior would have been an error message telling me I had insufficient write privileges and surely no repository corruption.

Thanks, Matthias

[1]: http://spinlock.ch/cgi-bin/gitweb.pl?p=swisdk2/bugs.git;a=tree (See Wiki_ctrl.php for source)

-- 
:wq
Next: Andreas Ericsson
Message 1 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.