Mercurial > hg-stable
changeset 41258:a6b98c95bcf0
shallowutil: fsdecode the bytes group name before passing to os
Differential Revision: https://phab.mercurial-scm.org/D5608
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 16 Jan 2019 11:02:20 -0500 |
parents | d08c816a11d3 |
children | 194e43c2bac9 |
files | hgext/remotefilelog/shallowutil.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/remotefilelog/shallowutil.py Wed Jan 16 11:01:45 2019 -0500 +++ b/hgext/remotefilelog/shallowutil.py Wed Jan 16 11:02:20 2019 -0500 @@ -420,7 +420,7 @@ def getgid(groupname): try: - gid = grp.getgrnam(groupname).gr_gid + gid = grp.getgrnam(pycompat.fsdecode(groupname)).gr_gid return gid except KeyError: return None