summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-rw-r--r--bitbake/lib/bb/fetch2/git.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index b3c5e6dacc..4d06a57198 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -462,7 +462,10 @@ class Git(FetchMethod):
462 462
463 logger.info("Creating tarball of git repository") 463 logger.info("Creating tarball of git repository")
464 with create_atomic(ud.fullmirror) as tfile: 464 with create_atomic(ud.fullmirror) as tfile:
465 runfetchcmd("tar -czf %s ." % tfile, d, workdir=ud.clonedir) 465 mtime = runfetchcmd("git log --all -1 --format=%cD", d,
466 quiet=True, workdir=ud.clonedir)
467 runfetchcmd("tar -czf %s --owner pokybuild --group users --mtime \"%s\" ."
468 % (tfile, mtime), d, workdir=ud.clonedir)
466 runfetchcmd("touch %s.done" % ud.fullmirror, d) 469 runfetchcmd("touch %s.done" % ud.fullmirror, d)
467 470
468 def clone_shallow_local(self, ud, dest, d): 471 def clone_shallow_local(self, ud, dest, d):