Better current branch name fetching
This commit is contained in:
@ -16,7 +16,7 @@ commit_file = sys.argv[1]
|
|||||||
regex = re.compile("^([A-Z]+-[0-9]+)", re.IGNORECASE)
|
regex = re.compile("^([A-Z]+-[0-9]+)", re.IGNORECASE)
|
||||||
|
|
||||||
git_branch_name = subprocess.run(
|
git_branch_name = subprocess.run(
|
||||||
["git", "rev-parse", "--abbrev-ref", "HEAD"],
|
["git", "branch", "--show-current"],
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
encoding="utf-8",
|
encoding="utf-8",
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user