From 99c62ebfce34de18342cd205152968dace3bd3da Mon Sep 17 00:00:00 2001 From: Benjamin Bohard Date: Mon, 7 Sep 2020 19:03:01 +0200 Subject: [PATCH] Prefix branch names --- setup_main_tex_file.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup_main_tex_file.py b/setup_main_tex_file.py index d423b0f..2062535 100755 --- a/setup_main_tex_file.py +++ b/setup_main_tex_file.py @@ -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():