summaryrefslogtreecommitdiff
path: root/gbp/scripts
diff options
context:
space:
mode:
authorbiao716.wang <biao716.wang@samsung.com>2021-05-10 16:44:36 +0900
committerbiao716.wang <biao716.wang@samsung.com>2021-05-10 16:44:36 +0900
commita27822490c01925283dd63e5ba0e1c97f7aead51 (patch)
tree325bdedd73c69bdb21468d87cccf1cfa9464a2d7 /gbp/scripts
parent9c7119961ff927ce4486fc44710b4bc147858870 (diff)
downloadgit-buildpackage-a27822490c01925283dd63e5ba0e1c97f7aead51.tar.gz
git-buildpackage-a27822490c01925283dd63e5ba0e1c97f7aead51.tar.bz2
git-buildpackage-a27822490c01925283dd63e5ba0e1c97f7aead51.zip
Fix export submodule source code errordebian/0.9.21
Change-Id: Ief8adf0e70e02c403ab4117a81e65ac141cb76d0 Signed-off-by: biao716.wang <biao716.wang@samsung.com>
Diffstat (limited to 'gbp/scripts')
-rw-r--r--gbp/scripts/common/buildpackage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gbp/scripts/common/buildpackage.py b/gbp/scripts/common/buildpackage.py
index d089df5a..a2122866 100644
--- a/gbp/scripts/common/buildpackage.py
+++ b/gbp/scripts/common/buildpackage.py
@@ -162,7 +162,7 @@ def dump_tree(repo, export_dir, treeish, with_submodules, recursive=True):
commit[0:8]))
subrepo = GitRepository(os.path.join(repo.path, subdir))
prefix = [subdir, subdir[2:]][subdir.startswith("./")] + '/'
- data = subrepo.archive('tar', prefix, None, treeish)
+ data = subrepo.archive('tar', prefix, None, treeish=commit)
untar_data(export_dir, data)
except GitRepositoryError as err:
gbp.log.err("Git error when dumping tree: %s" % err)