diff options
-rwxr-xr-x | gbp/scripts/pq_rpm.py | 7 |
1 files 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) |