From dbb96230321bade73aad33c2201bf608fd87c930 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Fri, 16 Sep 2016 11:11:52 +0200 Subject: Unbreak patch delta output broken by "pq: Ensure we are working in the right git directory" --- gbp/scripts/pq.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gbp/scripts/pq.py b/gbp/scripts/pq.py index 51539dc1..fd2ba6ad 100755 --- a/gbp/scripts/pq.py +++ b/gbp/scripts/pq.py @@ -147,7 +147,7 @@ def format_series_diff(added, removed, options): return msg -def commit_patches(repo, branch, patches, options): +def commit_patches(repo, branch, patches, options, patch_dir): """ Commit chanages exported from patch queue """ @@ -163,7 +163,7 @@ def commit_patches(repo, branch, patches, options): except IOError: # No series file yet oldpatches = [] - newpatches = [p[len(PATCH_DIR):] for p in patches] + newpatches = [p[len(patch_dir):] for p in patches] # FIXME: handle case were only the contents of the patches changed added, removed = compare_series(oldpatches, newpatches) @@ -220,7 +220,7 @@ def export_patches(repo, branch, options): for patch in patches: seriesfd.write(os.path.relpath(patch, patch_dir) + '\n') if options.commit: - added, removed = commit_patches(repo, branch, patches, options) + added, removed = commit_patches(repo, branch, patches, options, patch_dir) if added: what = 'patches' if len(added) > 1 else 'patch' gbp.log.info("Added %s %s to patch series" % (what, ', '.join(added))) -- cgit v1.2.3