summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-06 14:08:46 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-06 14:10:15 +0000
commit184038bedb20f74ba4dcad6ef2d92e87a9ba5f9a (patch)
tree5626907dea5b66623f2b0cacd8bf050a377ad14a /bitbake/lib
parent121dcd38552a38421a9dc4371b2169886c66643f (diff)
downloadast2050-yocto-poky-184038bedb20f74ba4dcad6ef2d92e87a9ba5f9a.zip
ast2050-yocto-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/lib')
-rw-r--r--bitbake/lib/bb/fetch2/git.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 2b9f8af..00a459d 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -213,6 +213,7 @@ class Git(FetchMethod):
runfetchcmd("%s prune-packed" % ud.basecmd, d)
runfetchcmd("%s pack-redundant --all | xargs -r rm" % ud.basecmd, d)
ud.repochanged = True
+ os.chdir(ud.clonedir)
for name in ud.names:
if not self._contains_ref(ud.revisions[name], ud.branches[name], d):
raise bb.fetch2.FetchError("Unable to find revision %s in branch %s even from upstream" % (ud.revisions[name], ud.branches[name]))
OpenPOWER on IntegriCloud