From dc84e29ad505fba337091b28705d52dc8bdd17a2 Mon Sep 17 00:00:00 2001 From: wanchao-xu Date: Tue, 30 Apr 2024 14:16:23 +0800 Subject: pq-rpm: fix the mistake of generate_patches. Change-Id: Ieaa9f6e3c9a063a50c25d623e1fe76f0c1926815 Signed-off-by: wanchao-xu --- gbp/scripts/pq_rpm.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gbp/scripts/pq_rpm.py b/gbp/scripts/pq_rpm.py index 95c60b66..445540b3 100755 --- a/gbp/scripts/pq_rpm.py +++ b/gbp/scripts/pq_rpm.py @@ -89,11 +89,12 @@ def generate_patches(repo, start, squash, end, outdir, options): start_sha1 = repo.rev_parse("%s^0" % start) try: end_commit = end + end_commit_sha1 = repo.rev_parse("%s^0" % end_commit) except GitRepositoryError: # In case of plain tree-ish objects, assume current branch head is the # last commit end_commit = "HEAD" - end_commit_sha1 = repo.rev_parse("%s^0" % end_commit) + end_commit_sha1 = repo.rev_parse("%s^0" % end_commit) start_sha1 = repo.rev_parse("%s^0" % start) @@ -157,8 +158,8 @@ def generate_patches(repo, start, squash, end, outdir, options): if end_commit != end: gbp.log.info("Generating diff file %s..%s" % (end_commit, end)) patch_fn = format_diff(outdir, None, repo, end_commit, end, - options.patch_export_ignore_path, - abbrev=options.abbrev) + abbrev=options.abbrev, + path_exclude_regex=options.patch_export_ignore_path) if patch_fn: patches.append(patch_fn) -- cgit v1.2.3