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

Re: permissions and packed-refs?

From
RHRobert Haines <rhaines@manchester.ac.uk>
Date
Apr 10, 2008, 16:21 UTC
Message-ID
<10723DA2-555B-40DB-8428-BDF07CA2510E@manchester.ac.uk>
In-Reply-To
<320075ff0804100530s2af22cc9r43208101e46a8154@mail.gmail.com>
On 10 Apr 2008, at 13:30, Nigel Magnay wrote:
Show 19 quoted lines
> This is likely a really stupid question... a repo that was working,
> has now stopped accepting a push with
>
> Counting objects: 43, done.
> Compressing objects: 100% (18/18)   Compressing objects: 100% (18/18),
> done.
> Writing objects: 100% (23/23)   Writing objects: 100% (23/23), 4.65  
> KiB,
> done.
> Total 23 (delta 10), reused 0 (delta 0)
> error: Unable to append to logs/refs/heads/realtime: Permission denied
> Pushing to ssh://10.1.3.153/pub/scm/git/git-svn/realtime.git
> To ssh://10.1.3.153/pub/scm/git/git-svn/realtime.git
>  ! [remote rejected] realtime -> realtime (failed to write)
> error: failed to push some refs to
> 'ssh://10.1.3.153/pub/scm/git/git-svn/realtime.git'
>
> I think git gc was run on the server at some point, as the head in
> question has been shifted into packed-refs.

I've seen this after git gc too. Has the owner of the affected files changed? If so you need to make sure that git gc is run by the correct user. If you run it as root for example, everything it touches will end up owned by root!

Cheers, Rob

Previous: Nigel MagnayNext: Logan Kennelly
Message 2 of 4 in “permissions and packed-refs?”
  1. Nigel MagnayApr 10, 2008
  2. Robert HainesApr 10, 2008
  3. Logan KennellyApr 10, 2008
  4. Nigel MagnayApr 10, 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.