From 73ddf1a3d1c516ad3bc785e0413483e616ce07a8 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 6 Dec 2013 14:08:46 +0000 Subject: [PATCH] fetch2/git: Ensure check is made in the correct directory Signed-off-by: Richard Purdie --- lib/bb/fetch2/git.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py index 2b9f8af9408..00a459d653f 100644 --- a/lib/bb/fetch2/git.py +++ b/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])) -- 2.47.3