Changeset - d3978233fcfa
[Not reviewed]
beta
1 1 1
Marcin Kuzminski - 13 years ago 2012-06-07 13:09:07
marcin@python-works.com
chmod the hooks to 755, like all other githooks.
fix hook template name
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rhodecode/config/post_receive_tmpl.py
Show inline comments
 
file renamed from rhodecode/config/pre_receive_tmpl.py to rhodecode/config/post_receive_tmpl.py
rhodecode/model/repo.py
Show inline comments
 
@@ -474,12 +474,12 @@ class RepoModel(BaseModel):
 
                os.makedirs(loc)
 

	
 
            tmpl = pkg_resources.resource_string(
 
                'rhodecode', jn('config', 'pre_receive_tmpl.py')
 
                'rhodecode', jn('config', 'post_receive_tmpl.py')
 
            )
 
            _hook_file = jn(loc, 'post-receive')
 
            with open(_hook_file, 'wb') as f:
 
                f.write(tmpl)
 
            os.chmod(_hook_file, 0555)
 
            os.chmod(_hook_file, 0755)
 

	
 
        else:
 
            raise Exception('Undefined alias %s' % alias)
0 comments (0 inline, 0 general)