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, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index f13a25f99d..3e37f76ffb 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -479,8 +479,10 @@ class Git(FetchMethod):
479 if ud.shallow and os.path.exists(ud.fullshallow) and self.clonedir_need_update(ud, d): 479 if ud.shallow and os.path.exists(ud.fullshallow) and self.clonedir_need_update(ud, d):
480 bb.utils.mkdirhier(destdir) 480 bb.utils.mkdirhier(destdir)
481 runfetchcmd("tar -xzf %s" % ud.fullshallow, d, workdir=destdir) 481 runfetchcmd("tar -xzf %s" % ud.fullshallow, d, workdir=destdir)
482 else: 482 elif not self.clonedir_need_update(ud, d):
483 runfetchcmd("%s clone %s %s/ %s" % (ud.basecmd, ud.cloneflags, ud.clonedir, destdir), d) 483 runfetchcmd("%s clone %s %s/ %s" % (ud.basecmd, ud.cloneflags, ud.clonedir, destdir), d)
484 else:
485 raise bb.fetch2.UnpackError("No up to date source found", ud.url)
484 486
485 repourl = self._get_repo_url(ud) 487 repourl = self._get_repo_url(ud)
486 runfetchcmd("%s remote set-url origin %s" % (ud.basecmd, repourl), d, workdir=destdir) 488 runfetchcmd("%s remote set-url origin %s" % (ud.basecmd, repourl), d, workdir=destdir)