##// END OF EJS Templates
fixed issue with passing IP address to log action logger for git
marcink -
r3097:db1b7125 beta
parent child Browse files
Show More
@@ -159,16 +159,18 b' def log_pull_action(ui, repo, **kwargs):'
159 159 repository = extras['repository']
160 160 scm = extras['scm']
161 161 make_lock = extras['make_lock']
162 ip = extras['ip']
162 163 elif 'username' in rc_extras:
163 164 username = rc_extras['username']
164 165 repository = rc_extras['repository']
165 166 scm = rc_extras['scm']
166 167 make_lock = rc_extras['make_lock']
168 ip = rc_extras['ip']
167 169 else:
168 170 raise Exception('Missing data in repo.ui and os.environ')
169 171 user = User.get_by_username(username)
170 172 action = 'pull'
171 action_logger(user, action, repository, extras['ip'], commit=True)
173 action_logger(user, action, repository, ip, commit=True)
172 174 # extension hook call
173 175 from rhodecode import EXTENSIONS
174 176 callback = getattr(EXTENSIONS, 'PULL_HOOK', None)
General Comments 0
You need to be logged in to leave comments. Login now