bitbake: 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.

(Bitbake rev: c1a57e2dd7fc96834643be5591a96f239215481a)

Signed-off-by: Terry Boese <terry.boese@vecima.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Terry Boese 2016-08-10 09:14:15 -06:00 committed by Richard Purdie
parent 82da1e6f6c
commit 93817932de
1 changed files with 1 additions and 1 deletions

View File

@ -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