My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1074: Permissions of refs/changes/* not group-writable
4 people starred this issue and may be notified of changes. Back to list
Status:  Invalid
Owner:  ----
Closed:  Jul 3


Sign in to add a comment
 
Reported by shan...@gmail.com, Aug 2, 2011
Affected Version:
gerrit> select * from schema_version;
 VERSION_NBR | SINGLETON
 ------------+----------
 40          | X


What steps will reproduce the problem?
1. We created a bare shared repo (git init --bare --shared=0660) and pushing gerrit changes here. We notice that the .git/refs/objects/* directory is unix group-writable, but files and directories under .git/refs/changes are not group-writable -- they have permissions of 755. Consequently, when multiple users do a git push to gerrit, depending on who goes in first, some of them get the error:

fatal: Unable to create '/path/to/git/repo/refs/changes/88/777/1.lock': Permission denied
error: failed to run pack-refs

Even though the user belongs to the unix group associated with /path/to/git/repo/refs/changes/88/777, gerrit makes the directory group-not-writable.


What is the expected output? What do you see instead?
git push should not give the error.

SN

Feb 10, 2012
#1 patn...@gmail.com
I'm seeing this in Gerrit 2.2.2-317-g388ba60 as well.
Jul 3, 2015
Project Member #2 edwin.ke...@gmail.com
This looks very old. Closing this issue. Please say if this issue is still needed.
Status: Invalid
Sign in to add a comment

Powered by Google Project Hosting