Skip to content

Commit

Permalink
tools: Skip decorating commits with references (branch name, remote)
Browse files Browse the repository at this point in the history
I think we don't care about this in release notes.

bgpd,pimd,isisd,nhrpd: Convert to vty_json() (origin/fix/vty_json)
ospf6d: Fix memory leak for `show ipv6 ospf6 zebra json` (origin/fix/zebra_ospf6d_json_leak)

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
  • Loading branch information
ton31337 committed Feb 4, 2022
1 parent aa6e3ce commit 1988854
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/release_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import getopt
import subprocess


def run(cmd):
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
rv = proc.communicate("")[0].decode("UTF-8")
Expand Down Expand Up @@ -45,7 +46,7 @@ def main(argv):
tag = run(["git", "describe", "--abbrev=0"]).strip("\n")

chnglog = run(
["git", "log", "--no-merges", "--pretty=format:'%s%d'", tag + ".." + branch]
["git", "log", "--no-merges", "--pretty=format:'%s'", tag + ".." + branch]
)
chnglog = chnglog.split("\n")

Expand Down

0 comments on commit 1988854

Please sign in to comment.