Support git's undocumented core.sharedRepository=2 value, which is equivilant to "world".
This commit is contained in:
parent
48fd416206
commit
dbd41159e0
3 changed files with 8 additions and 0 deletions
|
@ -19,6 +19,7 @@ getSharedRepository :: Repo -> SharedRepository
|
||||||
getSharedRepository r =
|
getSharedRepository r =
|
||||||
case map toLower $ Git.Config.get "core.sharedrepository" "" r of
|
case map toLower $ Git.Config.get "core.sharedrepository" "" r of
|
||||||
"1" -> GroupShared
|
"1" -> GroupShared
|
||||||
|
"2" -> AllShared
|
||||||
"group" -> GroupShared
|
"group" -> GroupShared
|
||||||
"true" -> GroupShared
|
"true" -> GroupShared
|
||||||
"all" -> AllShared
|
"all" -> AllShared
|
||||||
|
|
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -16,6 +16,8 @@ git-annex (5.20150618) UNRELEASED; urgency=medium
|
||||||
on the git-annex branch, so it works when run in a subdirectory.
|
on the git-annex branch, so it works when run in a subdirectory.
|
||||||
This bug affected git-annex unused, and potentially also transitions
|
This bug affected git-annex unused, and potentially also transitions
|
||||||
running code and other things.
|
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
|
-- Joey Hess <id@joeyh.name> Thu, 02 Jul 2015 12:31:14 -0400
|
||||||
|
|
||||||
|
|
|
@ -30,3 +30,8 @@ git annex sync
|
||||||
### What version of git-annex are you using? On what operating system?
|
### What version of git-annex are you using? On what operating system?
|
||||||
git-annex 5.20150508
|
git-annex 5.20150508
|
||||||
Linux 4.0.4
|
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]]
|
||||||
|
|
Loading…
Reference in a new issue