Guest User

Untitled

a guest
Jul 16th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. Shared Repos
  2.  
  3. Take .git dir. Set base = true. Then:
  4.  
  5. As Marc said, you should first make sure that "config" contains
  6. "sharedrepository = 1" in the "[core]" section.
  7.  
  8. Then you can do the following:
  9.  
  10. - remove all permissions for "others": chmod -R o-rwx .
  11. - mirror "user" permissions to "group": chmod -R g=u .
  12. - add +s flag to directories: find . -type d | xargs chmod g+s
  13.  
  14. This should fix your current situation. The "sharedrepository = 1"
  15. will tell git to maintain a proper shared state in the future
  16. on objects it creates (i.e. mirror "user" permission to "group" ones).
Add Comment
Please, Sign In to add comment