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