diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-07 09:34:24 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-07 09:34:24 +0000 |
commit | 330886826770ff6ec1449dc375cb4c3604b2736b (patch) | |
tree | ffd29137c05b8fcfa3e43acbba6b5a17e44741f4 /bitbake/lib | |
parent | 32dbc70e86c3b186658dcaa84a8c7cd76a50e069 (diff) | |
download | poky-330886826770ff6ec1449dc375cb4c3604b2736b.tar.gz |
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>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/fetch2/git.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index 8386ecca02..a78e4519e2 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py | |||
@@ -81,6 +81,9 @@ class Git(FetchMethod): | |||
81 | return ud.clonedir | 81 | return ud.clonedir |
82 | 82 | ||
83 | def forcefetch(self, url, ud, d): | 83 | def forcefetch(self, url, ud, d): |
84 | if not os.path.exists(ud.clonedir): | ||
85 | return True | ||
86 | os.chdir(ud.clonedir) | ||
84 | for name in ud.names: | 87 | for name in ud.names: |
85 | if not self._contains_ref(ud.revisions[name], d): | 88 | if not self._contains_ref(ud.revisions[name], d): |
86 | return True | 89 | return True |