From: Richard Purdie Date: Fri, 6 Dec 2013 14:08:46 +0000 (+0000) Subject: fetch2/git: Ensure check is made in the correct directory X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=73ddf1a3d1c516ad3bc785e0413483e616ce07a8;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git fetch2/git: Ensure check is made in the correct directory Signed-off-by: Richard Purdie --- 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]))