aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/scripts/import_orig.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-11-07 15:02:38 +0100
committerGuido Günther <agx@sigxcpu.org>2017-11-07 15:05:22 +0100
commit577ca32582e041b776d1c0ada199ca57b1a271db (patch)
treede55aad6027b5070edafb50778c2e84eb2a3fbcc /gbp/scripts/import_orig.py
parent62a94882daa5388afc2fc75e32e9d4008018e27f (diff)
import-orig: Run the hook on all succesful imports
So far we would skip it on initial imports which is pointless.
Diffstat (limited to 'gbp/scripts/import_orig.py')
-rw-r--r--gbp/scripts/import_orig.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gbp/scripts/import_orig.py b/gbp/scripts/import_orig.py
index 5c95d7af..b18060a8 100644
--- a/gbp/scripts/import_orig.py
+++ b/gbp/scripts/import_orig.py
@@ -627,7 +627,6 @@ def main(argv):
elif options.merge:
repo.rrr_branch(options.debian_branch)
debian_branch_merge(repo, tag, version, options)
- postimport_hook(repo, tag, version, options)
# Update working copy and index if we've possibly updated the
# checked out branch
@@ -635,6 +634,8 @@ def main(argv):
if current_branch in [options.upstream_branch,
repo.pristine_tar_branch]:
repo.force_head(current_branch, hard=True)
+
+ postimport_hook(repo, tag, version, options)
except (gbpc.CommandExecFailed, GitRepositoryError) as err:
msg = str(err) or 'Unknown error, please report a bug'
raise GbpError("Import of %s failed: %s" % (upstream.path, msg))