Make bare repo globally readable (chmod 755) in git-publish.py.
authorW. Trevor King <wking@drexel.edu>
Fri, 9 Dec 2011 17:25:42 +0000 (12:25 -0500)
committerW. Trevor King <wking@drexel.edu>
Fri, 9 Dec 2011 17:25:42 +0000 (12:25 -0500)
posts/Git/git-publish.py

index cc5910fe7644b9b6458599a93fa9742748950f45..278c8f6aa8dcc86a3d5e780cbaf1af02470b1f38 100755 (executable)
@@ -118,6 +118,7 @@ def make_bare_local_checkout(repo):
     _shutil.move(_os_path.join(bare, 'hooks', 'post-update.sample'),
                  _os_path.join(bare, 'hooks', 'post-update'))
     git(repo=bare, args=['--bare', 'update-server-info'])
+    _os.chmod(bare, 0755)
     return bare
 
 def recursive_copy(source, user, host, port, path):