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:
parent
32dbc70e86
commit
3308868267
|
@ -81,6 +81,9 @@ class Git(FetchMethod):
|
|||
return ud.clonedir
|
||||
|
||||
def forcefetch(self, url, ud, d):
|
||||
if not os.path.exists(ud.clonedir):
|
||||
return True
|
||||
os.chdir(ud.clonedir)
|
||||
for name in ud.names:
|
||||
if not self._contains_ref(ud.revisions[name], d):
|
||||
return True
|
||||
|
|
Loading…
Reference in New Issue