Skip to content
This repository was archived by the owner on Mar 13, 2024. It is now read-only.

Commit 028bd21

Browse files
OCoppingcoretl
authored andcommitted
Changed to '--format' from '--list' in check_branches.
1 parent 516aa7d commit 028bd21

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_dls_python3_skeleton.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ def check_output(*args, cwd=None) -> str:
2020

2121
def check_branches(module: str) -> List[str]:
2222
return [
23-
x[2:] for x in str(__main__.git("branch", "--list", cwd=module)).split("\n")
23+
x
24+
for x in __main__.git("branch", "--format=%(refname:short)", cwd=module).split(
25+
"\n"
26+
)
2427
]
2528

2629

0 commit comments

Comments
 (0)