diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-12-06 14:08:46 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-12-06 14:10:15 +0000 |
commit | 184038bedb20f74ba4dcad6ef2d92e87a9ba5f9a (patch) | |
tree | 5626907dea5b66623f2b0cacd8bf050a377ad14a /bitbake | |
parent | 121dcd38552a38421a9dc4371b2169886c66643f (diff) | |
download | poky-184038bedb20f74ba4dcad6ef2d92e87a9ba5f9a.tar.gz |
bitbake: fetch2/git: Ensure check is made in the correct directory
(Bitbake rev: 73ddf1a3d1c516ad3bc785e0413483e616ce07a8)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/fetch2/git.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index 2b9f8af940..00a459d653 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py | |||
@@ -213,6 +213,7 @@ class Git(FetchMethod): | |||
213 | runfetchcmd("%s prune-packed" % ud.basecmd, d) | 213 | runfetchcmd("%s prune-packed" % ud.basecmd, d) |
214 | runfetchcmd("%s pack-redundant --all | xargs -r rm" % ud.basecmd, d) | 214 | runfetchcmd("%s pack-redundant --all | xargs -r rm" % ud.basecmd, d) |
215 | ud.repochanged = True | 215 | ud.repochanged = True |
216 | os.chdir(ud.clonedir) | ||
216 | for name in ud.names: | 217 | for name in ud.names: |
217 | if not self._contains_ref(ud.revisions[name], ud.branches[name], d): | 218 | if not self._contains_ref(ud.revisions[name], ud.branches[name], d): |
218 | raise bb.fetch2.FetchError("Unable to find revision %s in branch %s even from upstream" % (ud.revisions[name], ud.branches[name])) | 219 | raise bb.fetch2.FetchError("Unable to find revision %s in branch %s even from upstream" % (ud.revisions[name], ud.branches[name])) |