Return-Path: X-Greylist: delayed 807 seconds by postgrey-1.34 at layers.openembedded.org; Tue, 02 Aug 2016 21:41:43 UTC Received: from mx2.vecima.com (mx2.vecima.com [216.65.182.69]) by mail.openembedded.org (Postfix) with ESMTP id D45576612C for ; Tue, 2 Aug 2016 21:41:43 +0000 (UTC) X-ASG-Debug-ID: 1470173290-0359fc42921ec1a0001-FWLXlK Received: from ExchangeInt.corp.vcom.com (exchangeint.corp.vcom.com [192.168.50.125]) by mx2.vecima.com with ESMTP id RmRrs2AqMgyp5nJa for ; Tue, 02 Aug 2016 15:28:10 -0600 (CST) X-Barracuda-Envelope-From: Terry.Boese@vecima.com Received: from PC2170.corp.vcom.com (192.168.216.92) by ExchangeInt.corp.vcom.com (192.168.50.125) with Microsoft SMTP Server id 14.3.279.2; Tue, 2 Aug 2016 15:28:10 -0600 From: Terry Boese To: Date: Tue, 2 Aug 2016 15:28:05 -0600 X-ASG-Orig-Subj: [PATCH] Use 'git annex init' instead of 'git annex sync'. Message-ID: <1470173285-14022-1-git-send-email-terry.boese@vecima.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [192.168.216.92] X-Barracuda-Connect: exchangeint.corp.vcom.com[192.168.50.125] X-Barracuda-Start-Time: 1470173290 X-Barracuda-URL: https://192.168.99.189:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 846 X-Virus-Scanned: by bsmtpd at vecima.com X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=4.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.31700 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Mailman-Approved-At: Fri, 05 Aug 2016 08:46:08 +0000 Cc: Terry Boese Subject: [PATCH] Use 'git annex init' instead of 'git annex sync'. X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussion that advance bitbake development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Aug 2016 21:41:47 -0000 Content-Type: text/plain 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/lib/bb/fetch2/gitannex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbake/lib/bb/fetch2/gitannex.py b/bitbake/lib/bb/fetch2/gitannex.py index 0f37897..e4527f1 100644 --- a/bitbake/lib/bb/fetch2/gitannex.py +++ b/bitbake/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 -- 2.7.4