Show More
1 | NO CONTENT: file renamed from rhodecode/config/pre_receive_tmpl.py to rhodecode/config/post_receive_tmpl.py |
|
NO CONTENT: file renamed from rhodecode/config/pre_receive_tmpl.py to rhodecode/config/post_receive_tmpl.py |
@@ -474,12 +474,12 b' class RepoModel(BaseModel):' | |||||
474 | os.makedirs(loc) |
|
474 | os.makedirs(loc) | |
475 |
|
475 | |||
476 | tmpl = pkg_resources.resource_string( |
|
476 | tmpl = pkg_resources.resource_string( | |
477 |
'rhodecode', jn('config', 'p |
|
477 | 'rhodecode', jn('config', 'post_receive_tmpl.py') | |
478 | ) |
|
478 | ) | |
479 | _hook_file = jn(loc, 'post-receive') |
|
479 | _hook_file = jn(loc, 'post-receive') | |
480 | with open(_hook_file, 'wb') as f: |
|
480 | with open(_hook_file, 'wb') as f: | |
481 | f.write(tmpl) |
|
481 | f.write(tmpl) | |
482 |
os.chmod(_hook_file, 0 |
|
482 | os.chmod(_hook_file, 0755) | |
483 |
|
483 | |||
484 | else: |
|
484 | else: | |
485 | raise Exception('Undefined alias %s' % alias) |
|
485 | raise Exception('Undefined alias %s' % alias) |
General Comments 0
You need to be logged in to leave comments.
Login now