mirror of
https://git.yoctoproject.org/poky
synced 2026-09-24 22:36:21 +02:00
bitbake/fetch2/git.py: Ensure that forcefetch operates in the correct directory for calling _contains_ref()
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -81,6 +81,9 @@ class Git(FetchMethod):
|
|||||||
return ud.clonedir
|
return ud.clonedir
|
||||||
|
|
||||||
def forcefetch(self, url, ud, d):
|
def forcefetch(self, url, ud, d):
|
||||||
|
if not os.path.exists(ud.clonedir):
|
||||||
|
return True
|
||||||
|
os.chdir(ud.clonedir)
|
||||||
for name in ud.names:
|
for name in ud.names:
|
||||||
if not self._contains_ref(ud.revisions[name], d):
|
if not self._contains_ref(ud.revisions[name], d):
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user