From a27822490c01925283dd63e5ba0e1c97f7aead51 Mon Sep 17 00:00:00 2001 From: "biao716.wang" Date: Mon, 10 May 2021 16:44:36 +0900 Subject: Fix export submodule source code error Change-Id: Ief8adf0e70e02c403ab4117a81e65ac141cb76d0 Signed-off-by: biao716.wang --- gbp/scripts/common/buildpackage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gbp/scripts') 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) -- cgit v1.2.3