From: W. Trevor King Date: Fri, 9 Dec 2011 17:25:42 +0000 (-0500) Subject: Make bare repo globally readable (chmod 755) in git-publish.py. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=af753ca07da96d6cc32a105b811834fac4571b5f;p=blog.git Make bare repo globally readable (chmod 755) in git-publish.py. --- diff --git a/posts/Git/git-publish.py b/posts/Git/git-publish.py index cc5910f..278c8f6 100755 --- a/posts/Git/git-publish.py +++ b/posts/Git/git-publish.py @@ -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):