summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/fetch2/git.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 842f1c6896..43c0ca2f15 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -375,7 +375,11 @@ class Git(FetchMethod):
375 else: 375 else:
376 tmpdir = tempfile.mkdtemp(dir=d.getVar('DL_DIR')) 376 tmpdir = tempfile.mkdtemp(dir=d.getVar('DL_DIR'))
377 runfetchcmd("tar -xzf %s" % ud.fullmirror, d, workdir=tmpdir) 377 runfetchcmd("tar -xzf %s" % ud.fullmirror, d, workdir=tmpdir)
378 fetch_cmd = "LANG=C %s fetch -f --progress %s " % (ud.basecmd, shlex.quote(tmpdir)) 378 output = runfetchcmd("%s remote" % ud.basecmd, d, quiet=True, workdir=ud.clonedir)
379 if 'mirror' in output:
380 runfetchcmd("%s remote rm mirror" % ud.basecmd, d, workdir=ud.clonedir)
381 runfetchcmd("%s remote add --mirror=fetch mirror %s" % (ud.basecmd, tmpdir), d, workdir=ud.clonedir)
382 fetch_cmd = "LANG=C %s fetch -f --update-head-ok --progress mirror " % (ud.basecmd)
379 runfetchcmd(fetch_cmd, d, workdir=ud.clonedir) 383 runfetchcmd(fetch_cmd, d, workdir=ud.clonedir)
380 repourl = self._get_repo_url(ud) 384 repourl = self._get_repo_url(ud)
381 385