From: Terry Boese Date: Wed, 10 Aug 2016 15:14:15 +0000 (-0600) Subject: fetch2/gitannex.py: use 'git annex init' instead of 'git annex sync' X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c1a57e2dd7fc96834643be5591a96f239215481a;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git fetch2/gitannex.py: use 'git annex init' instead of 'git annex sync' The git annex fetcher needs git annex to be initialized. Previously it was using 'git annex sync' to do this, but that has the downside of moving the checkout to the tip of the default branch. This means that tags, SRCREV, etc don't work in the gitannex case. Signed-off-by: Terry Boese Signed-off-by: Richard Purdie --- diff --git a/lib/bb/fetch2/gitannex.py b/lib/bb/fetch2/gitannex.py index 0f378974509..e4527f1c753 100644 --- a/lib/bb/fetch2/gitannex.py +++ b/lib/bb/fetch2/gitannex.py @@ -66,7 +66,7 @@ class GitANNEX(Git): os.chdir(ud.destdir) try: - runfetchcmd("%s annex sync" % (ud.basecmd), d) + runfetchcmd("%s annex init" % (ud.basecmd), d) except bb.fetch.FetchError: pass