##// END OF EJS Templates
acl: replace bare getpass.getuser() by platform function...
Yuya Nishihara -
r36430:03eff66a default
parent child Browse files
Show More
@@ -193,14 +193,11 b' 3) Deny access to a file to anyone but u'
193 193
194 194 from __future__ import absolute_import
195 195
196 import getpass
197
198 196 from mercurial.i18n import _
199 197 from mercurial import (
200 198 error,
201 199 extensions,
202 200 match,
203 pycompat,
204 201 registrar,
205 202 util,
206 203 )
@@ -341,7 +338,7 b' def hook(ui, repo, hooktype, node=None, '
341 338 user = urlreq.unquote(url[3])
342 339
343 340 if user is None:
344 user = pycompat.bytestr(getpass.getuser())
341 user = util.getuser()
345 342
346 343 ui.debug('acl: checking access for user "%s"\n' % user)
347 344
General Comments 0
You need to be logged in to leave comments. Login now