Skip to content

Commit ab57bcc

Browse files
committed
Fix script up to search branches
1 parent e1cb5b6 commit ab57bcc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

script/commit_message.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
1414

1515
def main():
1616

17-
cmd = "git log --pretty=format:'%s' master..HEAD"
17+
cmd_tag = "git describe --abbrev=0"
18+
tag = subprocess.check_output(cmd_tag,
19+
shell=True).decode("utf-8").split('\n')[0]
20+
21+
cmd = "git log --pretty=format:'%s' {}..master".format(tag)
1822
commits = subprocess.check_output(cmd, shell=True)
1923
commits = commits.decode("utf-8").split('\n')
2024
for commit in commits:

0 commit comments

Comments
 (0)