Re: git-cvsserver doesn't respect core.sharedrepository

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andy Parkins
Date: Tuesday, February 13, 2007 - 9:05 am

On Tuesday 2007 February 13 15:11, Johannes Schindelin wrote:


That perhaps might be the explanation for the bad behaviour.  The ref is being 
updated in git-cvsserver by writing the new head hash into the lockfile then 
doing

    unlink($reffile);
    rename($lockfile, $reffile);

The lockfile is made with whatever umask is in place, so the 
sharedrepository=group is being ignored.  The solution then is to use the 
permissions of the existing reffile when creating the lockfile.

Thanks Johannes.  One little sentence and it all becomes clear :-)


Andy
-- 
Dr Andy Parkins, M Eng (hons), MIEE
andyparkins@gmail.com
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git-cvsserver doesn't respect core.sharedrepository, Andy Parkins, (Tue Feb 13, 7:38 am)
Re: git-cvsserver doesn't respect core.sharedrepository, Johannes Schindelin, (Tue Feb 13, 8:11 am)
Re: git-cvsserver doesn't respect core.sharedrepository, Andy Parkins, (Tue Feb 13, 9:05 am)
Re: git-cvsserver doesn't respect core.sharedrepository, Nicolas Pitre, (Tue Feb 13, 9:48 am)
Re: git-cvsserver doesn't respect core.sharedrepository, Johannes Schindelin, (Tue Feb 13, 11:10 am)
Re: git-cvsserver doesn't respect core.sharedrepository, Andy Parkins, (Tue Feb 13, 11:21 am)
Re: git-cvsserver doesn't respect core.sharedrepository, Martin Langhoff, (Sun Mar 4, 10:15 pm)