Silly python 2.5 binary is for kids

This commit is contained in:
Ian Cordasco 2013-03-24 16:40:20 -04:00
parent d29f822b10
commit f333b22ba6

View file

@ -159,7 +159,9 @@ def install_hook():
with open(vcs, 'w+') as fd:
fd.write(git_hook_file)
# 0b111100100 == rwxr--r--
os.chmod(vcs, 0b111100100)
# Python 2.5 doesn't support 0b syntax so note that the above binary
# value is equilvanet to 484 in decimal
os.chmod(vcs, 484)
elif 'hg' in vcs:
_install_hg_hook(vcs)
else: