From: Jamie Zawinski <jwz@jwz.org>
To: git@vger.kernel.org
Subject: sharedrepository=group not working
Date: Mon, 3 Dec 2018 19:27:13 -0800 [thread overview]
Message-ID: <F9365CBF-3D2D-4A05-AC0D-4604067B5826@jwz.org> (raw)
I think sharedrepository=group stopped working some time between 2.10.5 (works) and 2.12.4 (does not). 2.19.2 also does not.
I have a user trying to push to a shared repo; the user is not the owner of the files but it is in the same group. All the repo files are g+rw and all the repo directories are g+srw.
drwxrwsr-x. 252 jwz cvs 4096 Dec 3 18:53 /cvsroot/dna.git/objects/
I am getting:
error: remote unpack failed: unable to create temporary object directory
To /cvsroot/dna.git
! [remote rejected] master -> master (unpacker error)
If I'm reading this strace right, it looks like git is successfully creating a directory under objects/ and then failing to create a subdirectory of it (maybe because the just-created parent directory ended up with the wrong permissions?)
mkdir("./objects/incoming-U5EN8D", 0700 <unfinished ...>
<... mkdir resumed> ) = 0
rt_sigaction(SIGINT, {0x56a860, [INT], SA_RESTORER|SA_RESTART, 0x7f842cb3b2f0}, <unfinished ...>
<... rt_sigaction resumed> {SIG_IGN, [], 0}, 8) = 0
rt_sigaction(SIGHUP, {0x56a860, [HUP], SA_RESTORER|SA_RESTART, 0x7f842cb3b2f0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {0x56a860, [TERM], SA_RESTORER|SA_RESTART, 0x7f842cb3b2f0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, {0x56a860, [QUIT], SA_RESTORER|SA_RESTART, 0x7f842cb3b2f0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGPIPE, {0x56a860, [PIPE], SA_RESTORER|SA_RESTART, 0x7f842cb3b2f0}, {SIG_DFL, [PIPE], SA_RESTORER|SA_RESTART, 0x7f842cb3b2f0}, 8) = 0
mkdir("./objects/incoming-U5EN8D/pack", 0777) = -1 EACCES (Permission denied)
--
Jamie Zawinski https://www.jwz.org/ https://www.dnalounge.com/
next reply other threads:[~2018-12-04 3:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-04 3:27 Jamie Zawinski [this message]
2018-12-04 4:09 ` sharedrepository=group not working Jeff King
2018-12-04 4:19 ` Jamie Zawinski
2018-12-04 4:20 ` Jamie Zawinski
2018-12-04 4:50 ` Jeff King
2018-12-04 5:24 ` Jamie Zawinski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=F9365CBF-3D2D-4A05-AC0D-4604067B5826@jwz.org \
--to=jwz@jwz.org \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).