Support git's undocumented core.sharedRepository=2 value, which is equivilant to "world".

This commit is contained in:
Joey Hess 2015-07-06 15:25:41 -04:00
parent 48fd416206
commit dbd41159e0
3 changed files with 8 additions and 0 deletions

View file

@ -19,6 +19,7 @@ getSharedRepository :: Repo -> SharedRepository
getSharedRepository r =
case map toLower $ Git.Config.get "core.sharedrepository" "" r of
"1" -> GroupShared
"2" -> AllShared
"group" -> GroupShared
"true" -> GroupShared
"all" -> AllShared

2
debian/changelog vendored
View file

@ -16,6 +16,8 @@ git-annex (5.20150618) UNRELEASED; urgency=medium
on the git-annex branch, so it works when run in a subdirectory.
This bug affected git-annex unused, and potentially also transitions
running code and other things.
* Support git's undocumented core.sharedRepository=2 value, which
is equivilant to "world".
-- Joey Hess <id@joeyh.name> Thu, 02 Jul 2015 12:31:14 -0400

View file

@ -30,3 +30,8 @@ git annex sync
### What version of git-annex are you using? On what operating system?
git-annex 5.20150508
Linux 4.0.4
> The problem turned out to be sharedRepository=2 which is not documented,
> so git-annex didn't support it, and left the incoming file permissions
> as-is. I've added support for this magic value, so it will work the same
> as "world" now. [[done]] --[[Joey]]