aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch2
diff options
context:
space:
mode:
authorTerry Boese <terry.boese@vecima.com>2016-08-10 09:14:15 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-11 00:05:38 +0100
commitc1a57e2dd7fc96834643be5591a96f239215481a (patch)
tree7769fce61f9b8a9b8db745f1abbfecbe0d611a7e /lib/bb/fetch2
parent88c5beca705efa7df4a96fb2aaf3f13c336ac328 (diff)
downloadbitbake-c1a57e2dd7fc96834643be5591a96f239215481a.tar.gz
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 <terry.boese@vecima.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2')
-rw-r--r--lib/bb/fetch2/gitannex.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/fetch2/gitannex.py b/lib/bb/fetch2/gitannex.py
index 0f3789745..e4527f1c7 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