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

Re: error: Unable to append to .git/logs/refs/remotes/origin/master: Permission denied

From
Jeff King <peff@peff.net>
Date
Apr 29, 2009, 08:06 UTC
Message-ID
<20090429080650.GA25227@coredump.intra.peff.net>
In-Reply-To
<20090429073256.GB22129@elte.hu>
On Wed, Apr 29, 2009 at 09:32:56AM +0200, Ingo Molnar wrote:
Show 9 quoted lines
> > So I think we would need to simulate the errno setting, like the 
> > patch below. That should generate the hint only when it would 
> > actually be useful.
> 
> it wasnt hard to figure out what's going on. So this was more of a 
> FYI, not really a bug report. Maybe if someone tries to pull into a 
> read-only repo the same could happen? My particular breakage (of a 
> single ref being root-owned - the rest was mingo owned) is atypical 
> enough to be ignored.

Actually, it is a little bit tough to get your breakage. A pure read-only repo would error out much earlier (permission denied on FETCH_HEAD or writing to object db). But if yours was just "accidentally fetched once as root", then that doesn't seem too uncommon.

> If there's no easy/clean solution then please ignore my report.
I think the patch I posted isn't too bad. We'll see what others say.
-Peff
Previous: Ingo MolnarNext: Jeff King
Message 5 of 8 in “error: Unable to append to .git/logs/refs/remotes/origin/master: Permission denied”
  1. Ingo MolnarApr 28, 2009
  2. Jeff KingApr 29, 2009
  3. Jeff KingApr 29, 2009
  4. Ingo MolnarApr 29, 2009
  5. Jeff KingApr 29, 2009
  6. 1/2 lock_ref: inform callers of unavailable refJeff King, May 25, 2009
  7. 2/2 fetch: report ref storage DF errors more accuratelyJeff King, May 25, 2009
  8. Junio C HamanoMay 25, 2009

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.