Mercurial > kallithea
diff rhodecode/lib/middleware/simplegit.py @ 2877:d6ac3baaa15a
merged beta into stable
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 28 Sep 2012 23:28:10 +0200 |
parents | 63e58ef80ef1 ccbdff90e5a0 |
children | a5f0bc867edc |
line wrap: on
line diff
--- a/rhodecode/lib/middleware/simplegit.py Wed Sep 19 23:02:36 2012 +0200 +++ b/rhodecode/lib/middleware/simplegit.py Fri Sep 28 23:28:10 2012 +0200 @@ -79,7 +79,7 @@ from webob.exc import HTTPNotFound, HTTPForbidden, HTTPInternalServerError, \ HTTPBadRequest, HTTPNotAcceptable -from rhodecode.lib.utils2 import safe_str +from rhodecode.lib.utils2 import safe_str, fix_PATH from rhodecode.lib.base import BaseVCSController from rhodecode.lib.auth import get_container_username from rhodecode.lib.utils import is_valid_repo, make_ui @@ -188,12 +188,14 @@ # extras are injected into UI object and later available # in hooks executed by rhodecode + from rhodecode import CONFIG extras = { 'ip': ipaddr, 'username': username, 'action': action, 'repository': repo_name, 'scm': 'git', + 'config': CONFIG['__file__'], 'make_lock': None, 'locked_by': [None, None] } @@ -218,6 +220,7 @@ 'locked_by': locked_by}) # set the environ variables for this request os.environ['RC_SCM_DATA'] = json.dumps(extras) + fix_PATH() log.debug('HOOKS extras is %s' % extras) baseui = make_ui('db') self.__inject_extras(repo_path, baseui, extras)