Skip to content

Commit 1deeb94

Browse files
committed
debug
1 parent 1043594 commit 1deeb94

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

CI/astyle/astyle.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,18 @@ def gitdiff_files():
9292
sys.exit(1)
9393

9494
gitroot = output.decode("utf-8").rstrip()
95-
rel_src = re.sub("^[/\\]+]", "", re.sub(gitroot, "", src_path))
95+
print(gitroot)
9696

97+
rel_src = re.sub("^[/\\]+]", "", re.sub(gitroot, "", src_path))
98+
print(rel_src)
9799
cmd = []
98100
cmd.append("git")
99101
cmd.append("diff")
100102
cmd.append("--name-only")
101103
cmd.append("--diff-filter=d")
102104
cmd.append(git_branch)
103105
cmd.append("--relative=" + rel_src)
104-
106+
print(cmd)
105107
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
106108
while True:
107109
line = proc.stdout.readline().decode("utf-8").rstrip()
@@ -235,6 +237,7 @@ def main():
235237

236238
if args.gitdiff or args.branch:
237239
if args.branch:
240+
print("Using branch: " + args.branch)
238241
git_branch = args.branch
239242
gitdiff_files()
240243
else:

0 commit comments

Comments
 (0)