Skip to content
Snippets Groups Projects
Commit a6b98c95 authored by Augie Fackler's avatar Augie Fackler
Browse files

shallowutil: fsdecode the bytes group name before passing to os

Differential Revision: https://phab.mercurial-scm.org/D5608
parent d08c816a
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment