This commit is contained in:
Michael Gukov 2018-12-17 01:47:01 +05:00
parent 35a9a8a8ba
commit a5c8c2022b
2 changed files with 6 additions and 3 deletions

View file

@ -87,8 +87,11 @@ def init_admin_repository(
# ConfigParser does not guarantee order, so jump through hoops
# to make sure [gitosis] is first
cfg_file = StringIO()
print >>cfg_file, '[gitosis]'
print >>cfg_file
print('[gitosis]', file=cfg_file)
#print('', end="", file=cfg_file)
#print >>cfg_file, '[gitosis]'
#print >>cfg_file
cfg = RawConfigParser()
cfg.add_section('group gitosis-admin')
cfg.set('group gitosis-admin', 'members', user)

View file

@ -185,7 +185,7 @@ def has_initial_commit(git_dir):
stdout=subprocess.PIPE,
close_fds=True,
)
got = child.stdout.read()
got = child.stdout.read().decode('utf-8')
returncode = child.wait()
if returncode != 0:
raise GitRevParseError('exit status %d' % returncode)