summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/gitannex.py
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:07:08 +0100
commit93817932de86e99d76596bf76e19f20319a36ea2 (patch)
tree278fa0e32dccde37301c52d3c5e786a74002e776 /bitbake/lib/bb/fetch2/gitannex.py
parent82da1e6f6c4f2eee87ec5f100ad6d65b2b6372dc (diff)
downloadpoky-93817932de86e99d76596bf76e19f20319a36ea2.tar.gz
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>
Diffstat (limited to 'bitbake/lib/bb/fetch2/gitannex.py')
-rw-r--r--bitbake/lib/bb/fetch2/gitannex.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/gitannex.py b/bitbake/lib/bb/fetch2/gitannex.py
index 0f37897450..e4527f1c75 100644
--- a/bitbake/lib/bb/fetch2/gitannex.py
+++ b/bitbake/lib/bb/fetch2/gitannex.py
@@ -66,7 +66,7 @@ class GitANNEX(Git):
66 66
67 os.chdir(ud.destdir) 67 os.chdir(ud.destdir)
68 try: 68 try:
69 runfetchcmd("%s annex sync" % (ud.basecmd), d) 69 runfetchcmd("%s annex init" % (ud.basecmd), d)
70 except bb.fetch.FetchError: 70 except bb.fetch.FetchError:
71 pass 71 pass
72 72