Skip to content

Commit

Permalink
Merge pull request #6 from ForgeFlow/fix-message
Browse files Browse the repository at this point in the history
[FIX] Remove unnecessary commit message newlines
  • Loading branch information
PabloEForgeFlow authored Apr 18, 2024
2 parents 326f29b + 8b91281 commit 0d66992
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions odoo_filter_addons/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ def filter_repo(agg_path, rname, repo, modules):
merge = merge.strip()
remote, ref = merge.split()
if ref.startswith("refs/"):
commit = git("-C", rpath, "ls-remote", "--exit-code", remote, ref).split()[0]
commit = git("-C", rpath, "ls-remote", "--exit-code", remote, ref).strip().split()[0]
lines.append(f"{merge} {commit}")
elif len(ref) == 40:
lines.append(merge)
else:
commit = git("-C", rpath, "rev-parse", merge.replace(" ", "/"))
commit = git("-C", rpath, "rev-parse", merge.replace(" ", "/")).strip()
lines.append(f"{merge} {commit}")
message = "\n".join(lines)
print(f"Partial message:\n{message}")
Expand Down Expand Up @@ -177,6 +177,7 @@ def initialize_repos(output_path, agg_path, repos):
with set_argv(new_argv):
gitaggregate()
print(f"gitaggregate output written to '{agg_path}'")

#####################################################################

# API entry point
Expand Down
2 changes: 1 addition & 1 deletion odoo_filter_addons/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.3.1"
__version__ = "1.3.2"

0 comments on commit 0d66992

Please sign in to comment.