# HG changeset patch # User Augie Fackler # Date 2019-01-16 16:02:20 # Node ID a6b98c95bcf0f26becf956b127abed26655cf479 # Parent d08c816a11d3ce4478958261976e6439c03e1e88 shallowutil: fsdecode the bytes group name before passing to os Differential Revision: https://phab.mercurial-scm.org/D5608 diff --git a/hgext/remotefilelog/shallowutil.py b/hgext/remotefilelog/shallowutil.py --- a/hgext/remotefilelog/shallowutil.py +++ b/hgext/remotefilelog/shallowutil.py @@ -420,7 +420,7 @@ def readpathlist(stream): def getgid(groupname): try: - gid = grp.getgrnam(groupname).gr_gid + gid = grp.getgrnam(pycompat.fsdecode(groupname)).gr_gid return gid except KeyError: return None