Prefix branch names

This commit is contained in:
Benjamin Bohard 2020-09-07 19:03:01 +02:00
parent d01c139026
commit 99c62ebfce
1 changed files with 4 additions and 2 deletions

View File

@ -49,9 +49,9 @@ def escape_tex(value):
def normalize_branch(args):
if 'master' in args:
return path.dirname(args.master).replace('/', '')
return path.join('xelatex', path.dirname(args.master).replace('/', ''))
elif 'directory' in args:
return args.directory.replace('/', '')
return path.join('xelatex', args.directory.replace('/', ''))
else:
raise Exception('No sufficient information to create branch')
@ -109,6 +109,8 @@ def git_integration(func):
'comment',
tree,
parents)
return inner
def main():