Keep slash in branch name

This commit is contained in:
Benjamin Bohard 2021-01-29 15:18:33 +01:00
parent 30a6389514
commit 7edb5ee916

View File

@ -49,9 +49,9 @@ def escape_tex(value):
def normalize_branch(args):
if 'master' in args:
return path.join('xelatex', path.dirname(args.master).replace('/', ''))
return path.join('xelatex', path.dirname(args.master))
elif 'directory' in args:
return path.join('xelatex', args.directory.replace('/', ''))
return path.join('xelatex', args.directory)
else:
raise Exception('No sufficient information to create branch')