diff options
author | Marcin Kuzminski <marcin@python-works.com> | 2012-12-13 22:30:17 +0100 |
---|---|---|
committer | Marcin Kuzminski <marcin@python-works.com> | 2012-12-13 22:30:17 +0100 |
commit | 79b7ee3aba629879f2ef6fc6dbc79e5893a9f636 (patch) | |
tree | 8a3bed538417859ccbae5263a46caca484ef5f0c | |
parent | c72bc48d7116866150e44d336a8792b9efe20608 (diff) |
fixed issue with passing IP address to log action logger for git
--HG--
branch : beta
-rw-r--r-- | rhodecode/lib/hooks.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rhodecode/lib/hooks.py b/rhodecode/lib/hooks.py index 4374a151..916b49ab 100644 --- a/rhodecode/lib/hooks.py +++ b/rhodecode/lib/hooks.py @@ -159,16 +159,18 @@ def log_pull_action(ui, repo, **kwargs): repository = extras['repository'] scm = extras['scm'] make_lock = extras['make_lock'] + ip = extras['ip'] elif 'username' in rc_extras: username = rc_extras['username'] repository = rc_extras['repository'] scm = rc_extras['scm'] make_lock = rc_extras['make_lock'] + ip = rc_extras['ip'] else: raise Exception('Missing data in repo.ui and os.environ') user = User.get_by_username(username) action = 'pull' - action_logger(user, action, repository, extras['ip'], commit=True) + action_logger(user, action, repository, ip, commit=True) # extension hook call from rhodecode import EXTENSIONS callback = getattr(EXTENSIONS, 'PULL_HOOK', None) |