diff rhodecode/lib/middleware/simplegit.py @ 2858:dd2d5b65cae9 beta

Also export config filename via extras.config in simplegit middleware (juste like for the simplehg one)
author Vincent Caron <vcaron@bearstech.com>
date Thu, 20 Sep 2012 15:35:55 +0200
parents aa17c7a1b8a5
children ccbdff90e5a0
line wrap: on
line diff
--- a/rhodecode/lib/middleware/simplegit.py	Fri Sep 07 22:59:08 2012 +0200
+++ b/rhodecode/lib/middleware/simplegit.py	Thu Sep 20 15:35:55 2012 +0200
@@ -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]
         }