Skip to content

Commit

Permalink
build: fixed build_changelog.py when submodule added
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Jan 11, 2023
1 parent 8c21058 commit 1dbb836
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/build_changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ def summary_repo(path: str, commitrange: str, filter_types: List[str]) -> str:
if commitrange.endswith("0000000"):
# Happens when a submodule has been removed
return ""
if commitrange.startswith("0000000"):
# Happens when a submodule has been added
commitrange = "" # no range = all commits

dirname = run("bash -c 'basename $(pwd)'", cwd=path).strip()
out = f"\n## 📦 {dirname}"

Expand Down

0 comments on commit 1dbb836

Please sign in to comment.