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 87a35d97a3..f203c5abb1 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -68,7 +68,7 @@ class Git(FetchMethod):
68 # 68 #
69 # Only enable _sortable revision if the key is set 69 # Only enable _sortable revision if the key is set
70 # 70 #
71 if bb.data.getVar("BB_GIT_CLONE_FOR_SRCREV", d, True): 71 if d.getVar("BB_GIT_CLONE_FOR_SRCREV", True):
72 self._sortable_buildindex = self._sortable_buildindex_disabled 72 self._sortable_buildindex = self._sortable_buildindex_disabled
73 def supports(self, url, ud, d): 73 def supports(self, url, ud, d):
74 """ 74 """
@@ -146,7 +146,7 @@ class Git(FetchMethod):
146 def try_premirror(self, u, ud, d): 146 def try_premirror(self, u, ud, d):
147 # If we don't do this, updating an existing checkout with only premirrors 147 # If we don't do this, updating an existing checkout with only premirrors
148 # is not possible 148 # is not possible
149 if bb.data.getVar("BB_FETCH_PREMIRRORONLY", d, True) is not None: 149 if d.getVar("BB_FETCH_PREMIRRORONLY", True) is not None:
150 return True 150 return True
151 if os.path.exists(ud.clonedir): 151 if os.path.exists(ud.clonedir):
152 return False 152 return False