From 184038bedb20f74ba4dcad6ef2d92e87a9ba5f9a Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 6 Dec 2013 14:08:46 +0000 Subject: bitbake: fetch2/git: Ensure check is made in the correct directory (Bitbake rev: 73ddf1a3d1c516ad3bc785e0413483e616ce07a8) Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/git.py | 1 + 1 file changed, 1 insertion(+) (limited to 'bitbake/lib/bb/fetch2/git.py') 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): 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])) -- cgit v1.2.3-54-g00ecf