[oe-commits] [bitbake] 02/05: fetch2/gitannex.py: use 'git annex init' instead of 'git annex sync'

git at git.openembedded.org git at git.openembedded.org
Wed Aug 10 23:07:48 UTC 2016


rpurdie pushed a commit to branch master
in repository bitbake.

commit c1a57e2dd7fc96834643be5591a96f239215481a
Author: Terry Boese <terry.boese at vecima.com>
AuthorDate: Wed Aug 10 09:14:15 2016 -0600

    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 at vecima.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/fetch2/gitannex.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bb/fetch2/gitannex.py b/lib/bb/fetch2/gitannex.py
index 0f37897..e4527f1 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
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list