mirror of
https://github.com/wentasah/ros2nix.git
synced 2025-06-10 00:02:23 +03:00
Fix generating patches of independent packages in a single repo
This commit is contained in:
parent
c06d6087d3
commit
9406815aba
2 changed files with 17 additions and 1 deletions
|
@ -450,7 +450,7 @@ def ros2nix(args):
|
|||
|
||||
if args.patches:
|
||||
patches = subprocess.check_output(
|
||||
f"if ! git diff --quiet {upstream_rev}..HEAD -- .; then git format-patch --relative {upstream_rev}..HEAD; fi",
|
||||
f"for i in $(git rev-list --reverse --relative {upstream_rev}..HEAD -- .); do git format-patch --zero-commit --relative -1 $i; done",
|
||||
shell=True, cwd=srcdir,
|
||||
).decode().strip().splitlines()
|
||||
elif head != upstream_rev:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue