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.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 4534bd7580..17d4904927 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -567,13 +567,12 @@ class Git(FetchMethod):
567 source_found = False 567 source_found = False
568 source_error = [] 568 source_error = []
569 569
570 if not source_found: 570 clonedir_is_up_to_date = not self.clonedir_need_update(ud, d)
571 clonedir_is_up_to_date = not self.clonedir_need_update(ud, d) 571 if clonedir_is_up_to_date:
572 if clonedir_is_up_to_date: 572 runfetchcmd("%s clone %s %s/ %s" % (ud.basecmd, ud.cloneflags, ud.clonedir, destdir), d)
573 runfetchcmd("%s clone %s %s/ %s" % (ud.basecmd, ud.cloneflags, ud.clonedir, destdir), d) 573 source_found = True
574 source_found = True 574 else:
575 else: 575 source_error.append("clone directory not available or not up to date: " + ud.clonedir)
576 source_error.append("clone directory not available or not up to date: " + ud.clonedir)
577 576
578 if not source_found: 577 if not source_found:
579 if ud.shallow: 578 if ud.shallow: