Use correct stat module constant

Previously we were using stat.IROTH instead of stat.S_IROTH. I must
have been thinking about retirement. ;-)
This commit is contained in:
Ian Cordasco 2016-06-16 06:26:02 -05:00
parent b1f039a476
commit a4b0793bf7
No known key found for this signature in database
GPG key ID: 656D3395E4A9791A

View file

@ -89,7 +89,7 @@ def install():
# - read permissions for other people
# The owner needs the file to be readable, writable, and executable
# so that git can actually execute it as a hook.
pre_commit_permissions = stat.S_IRWXU | stat.S_IRGRP | stat.IROTH
pre_commit_permissions = stat.S_IRWXU | stat.S_IRGRP | stat.S_IROTH
os.chmod(pre_commit_file, pre_commit_permissions)
return True