Show More
@@ -42,7 +42,7 b' def install_git_hooks(repo_path, bare, e' | |||
|
42 | 42 | if not bare: |
|
43 | 43 | hooks_path = os.path.join(repo_path, '.git', 'hooks') |
|
44 | 44 | if not os.path.isdir(hooks_path): |
|
45 | os.makedirs(hooks_path, mode=0777) | |
|
45 | os.makedirs(hooks_path, mode=0o777) | |
|
46 | 46 | |
|
47 | 47 | tmpl_post = pkg_resources.resource_string( |
|
48 | 48 | 'vcsserver', '/'.join( |
@@ -69,7 +69,7 b' def install_git_hooks(repo_path, bare, e' | |||
|
69 | 69 | template = template.replace('_ENV_', executable) |
|
70 | 70 | template = template.replace('_PATH_', path) |
|
71 | 71 | f.write(template) |
|
72 | os.chmod(_hook_file, 0755) | |
|
72 | os.chmod(_hook_file, 0o755) | |
|
73 | 73 | except IOError: |
|
74 | 74 | log.exception('error writing hook file %s', _hook_file) |
|
75 | 75 | else: |
@@ -89,7 +89,7 b' def install_svn_hooks(repo_path, executa' | |||
|
89 | 89 | executable = executable or sys.executable |
|
90 | 90 | hooks_path = os.path.join(repo_path, 'hooks') |
|
91 | 91 | if not os.path.isdir(hooks_path): |
|
92 | os.makedirs(hooks_path, mode=0777) | |
|
92 | os.makedirs(hooks_path, mode=0o777) | |
|
93 | 93 | |
|
94 | 94 | tmpl_post = pkg_resources.resource_string( |
|
95 | 95 | 'vcsserver', '/'.join( |
@@ -118,7 +118,7 b' def install_svn_hooks(repo_path, executa' | |||
|
118 | 118 | template = template.replace('_PATH_', path) |
|
119 | 119 | |
|
120 | 120 | f.write(template) |
|
121 | os.chmod(_hook_file, 0755) | |
|
121 | os.chmod(_hook_file, 0o755) | |
|
122 | 122 | except IOError: |
|
123 | 123 | log.exception('error writing hook file %s', _hook_file) |
|
124 | 124 | else: |
@@ -278,7 +278,7 b' class HTTPApplication(object):' | |||
|
278 | 278 | |
|
279 | 279 | # ensure we have our dir created |
|
280 | 280 | if not os.path.isdir(default_cache_dir): |
|
281 | os.makedirs(default_cache_dir, mode=0755) | |
|
281 | os.makedirs(default_cache_dir, mode=0o755) | |
|
282 | 282 | |
|
283 | 283 | # exception store cache |
|
284 | 284 | _string_setting( |
General Comments 0
You need to be logged in to leave comments.
Login now