summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-07-06 15:25:41 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-07-06 15:33:44 -0400
commit025d21453124a8d6b6997b15eecf4e643195d581 (patch)
tree21d6cb51000b3f8adf855653c143f53d7cea4891
parent6e1d4ae692061b74c06fcc227c5d731513b513de (diff)
Support git's undocumented core.sharedRepository=2 value, which is equivilant to "world".
-rw-r--r--Git/SharedRepository.hs1
-rw-r--r--debian/changelog2
-rw-r--r--doc/bugs/sharedRepository__61__world_not_working.mdwn5
3 files changed, 8 insertions, 0 deletions
diff --git a/Git/SharedRepository.hs b/Git/SharedRepository.hs
index 3aab1e39a..1e7382388 100644
--- a/Git/SharedRepository.hs
+++ b/Git/SharedRepository.hs
@@ -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
diff --git a/debian/changelog b/debian/changelog
index 51ff7fe14..81fd27b25 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -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
diff --git a/doc/bugs/sharedRepository__61__world_not_working.mdwn b/doc/bugs/sharedRepository__61__world_not_working.mdwn
index f40fd3eff..16d54ef9a 100644
--- a/doc/bugs/sharedRepository__61__world_not_working.mdwn
+++ b/doc/bugs/sharedRepository__61__world_not_working.mdwn
@@ -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]]