[oe-commits] [bitbake] branch 1.28 updated: Replace deprecated git branch parameter "--set-upstream"

git at git.openembedded.org git at git.openembedded.org
Tue Nov 7 13:42:17 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch 1.28
in repository bitbake.

The following commit(s) were added to refs/heads/1.28 by this push:
     new 68d061d  Replace deprecated git branch parameter "--set-upstream"
68d061d is described below

commit 68d061d2517f1a79dc6b14a373ed2dcb78a901ce
Author: Andre Rosa <andre.rosa at lge.com>
AuthorDate: Fri Nov 3 12:40:14 2017 +0100

    Replace deprecated git branch parameter "--set-upstream"
    
    Since 2017-08-17 (git version 2.14.1.473.g3ec7d702a) using deprecated
    git branch parameter "--set-upstream" causes a fetcher error. Replace
    it by "--set-upstream-to".
    
    https://git.kernel.org/pub/scm/git/git.git/commit/?id=52668846ea2d41ffbd87cda7cb8e492dea9f2c4d
    says, it's deprecated since 2012-08-30 so hopefully all still supported
    host distributions have new enough git to support "--set-upstream-to".
    
    ERROR: PACKAGE do_unpack: Fetcher failure: ...;
    git -c core.fsyncobjectfiles=0 branch --set-upstream master origin/master failed with exit code 128, output:
    fatal: the '--set-upstream' option is no longer supported. Please use '--track' or '--set-upstream-to' instead.
    
    ERROR: PACKAGE do_unpack: Function failed: base_do_unpack
    
    Signed-off-by: Andre Rosa <andre.rosa at lge.com>
    Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
    (cherry picked from commit 2ab50074c1a6c56a8a178755de108447d7b7acaf)
    Signed-off-by: Javier Viguera <javier.viguera at digi.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/fetch2/git.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py
index 9bd87ad..5ac7e9a 100644
--- a/lib/bb/fetch2/git.py
+++ b/lib/bb/fetch2/git.py
@@ -289,7 +289,7 @@ class Git(FetchMethod):
                 branchname =  ud.branches[ud.names[0]]
                 runfetchcmd("%s checkout -B %s %s" % (ud.basecmd, branchname, \
                             ud.revisions[ud.names[0]]), d)
-                runfetchcmd("%s branch --set-upstream %s origin/%s" % (ud.basecmd, branchname, \
+                runfetchcmd("%s branch %s --set-upstream-to origin/%s" % (ud.basecmd, branchname, \
                             branchname), d)
             else:
                 runfetchcmd("%s checkout %s" % (ud.basecmd, ud.revisions[ud.names[0]]), d)

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


More information about the Openembedded-commits mailing list