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