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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 0deeb5cee1..842f1c6896 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -258,7 +258,7 @@ class Git(FetchMethod):
258 for name in ud.names: 258 for name in ud.names:
259 ud.unresolvedrev[name] = 'HEAD' 259 ud.unresolvedrev[name] = 'HEAD'
260 260
261 ud.basecmd = d.getVar("FETCHCMD_git") or "git -c gc.autoDetach=false -c core.pager=cat" 261 ud.basecmd = d.getVar("FETCHCMD_git") or "git -c gc.autoDetach=false -c core.pager=cat -c safe.bareRepository=all"
262 262
263 write_tarballs = d.getVar("BB_GENERATE_MIRROR_TARBALLS") or "0" 263 write_tarballs = d.getVar("BB_GENERATE_MIRROR_TARBALLS") or "0"
264 ud.write_tarballs = write_tarballs != "0" or ud.rebaseable 264 ud.write_tarballs = write_tarballs != "0" or ud.rebaseable
@@ -514,7 +514,7 @@ class Git(FetchMethod):
514 514
515 logger.info("Creating tarball of git repository") 515 logger.info("Creating tarball of git repository")
516 with create_atomic(ud.fullmirror) as tfile: 516 with create_atomic(ud.fullmirror) as tfile:
517 mtime = runfetchcmd("git log --all -1 --format=%cD", d, 517 mtime = runfetchcmd("{} log --all -1 --format=%cD".format(ud.basecmd), d,
518 quiet=True, workdir=ud.clonedir) 518 quiet=True, workdir=ud.clonedir)
519 runfetchcmd("tar -czf %s --owner oe:0 --group oe:0 --mtime \"%s\" ." 519 runfetchcmd("tar -czf %s --owner oe:0 --group oe:0 --mtime \"%s\" ."
520 % (tfile, mtime), d, workdir=ud.clonedir) 520 % (tfile, mtime), d, workdir=ud.clonedir)