summaryrefslogtreecommitdiff
path: root/git-import-orig
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2009-10-05 18:13:08 +0200
committerGuido Günther <agx@sigxcpu.org>2009-10-05 18:14:30 +0200
commitaf4265ef327a155501289ed5fdc4353350e32d7c (patch)
treee22f0a0ab94b3b072cb73d3db7397a76472fbc9b /git-import-orig
parent260afa1f7d04a4c72d85374ba27355a82bc134f7 (diff)
downloadgit-buildpackage-af4265ef327a155501289ed5fdc4353350e32d7c.tar.gz
git-buildpackage-af4265ef327a155501289ed5fdc4353350e32d7c.tar.bz2
git-buildpackage-af4265ef327a155501289ed5fdc4353350e32d7c.zip
export GBP_BRANCH to postimport hook
so we can pass the current branch to git-dch
Diffstat (limited to 'git-import-orig')
-rwxr-xr-xgit-import-orig3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-import-orig b/git-import-orig
index 9438e6aa..a8e4d3c9 100755
--- a/git-import-orig
+++ b/git-import-orig
@@ -390,7 +390,8 @@ on howto create it otherwise use --upstream-branch to specify it.
if has_epoch(cp):
epoch = '%s:' % cp['Epoch']
info = { 'version': "%s%s-1" % (epoch, version) }
- cmd = gbpc.Command(options.postimport % info, shell=True)()
+ env = { 'GBP_BRANCH': options.debian_branch }
+ cmd = gbpc.Command(options.postimport % info, extra_env=env, shell=True)()
except gbpc.CommandExecFailed:
raise GbpError, "Import of %s failed" % archive
except GbpNothingImported, err: