summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorAndre Rosa <andre.rosa@lge.com>2017-09-07 11:15:55 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-11-05 22:37:29 +0000
commita475795953822573264891bce459a91cc7d99201 (patch)
tree303b3f5e24540a08a68c0e7967c2b4c03530bd50 /bitbake
parent50cc15335ebcdfa2a2fc52c11fa01695dfdb9e26 (diff)
downloadpoky-a475795953822573264891bce459a91cc7d99201.tar.gz
bitbake: 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 (Bitbake rev: 698e36430761cd3cf81283d58ca5bb3426bd24dd) Signed-off-by: Andre Rosa <andre.rosa@lge.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch2/git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 2550bde838..7442f84414 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -326,7 +326,7 @@ class Git(FetchMethod):
326 branchname = ud.branches[ud.names[0]] 326 branchname = ud.branches[ud.names[0]]
327 runfetchcmd("%s checkout -B %s %s" % (ud.basecmd, branchname, \ 327 runfetchcmd("%s checkout -B %s %s" % (ud.basecmd, branchname, \
328 ud.revisions[ud.names[0]]), d, workdir=destdir) 328 ud.revisions[ud.names[0]]), d, workdir=destdir)
329 runfetchcmd("%s branch --set-upstream %s origin/%s" % (ud.basecmd, branchname, \ 329 runfetchcmd("%s branch %s --set-upstream-to origin/%s" % (ud.basecmd, branchname, \
330 branchname), d, workdir=destdir) 330 branchname), d, workdir=destdir)
331 else: 331 else:
332 runfetchcmd("%s checkout %s" % (ud.basecmd, ud.revisions[ud.names[0]]), d, workdir=destdir) 332 runfetchcmd("%s checkout %s" % (ud.basecmd, ud.revisions[ud.names[0]]), d, workdir=destdir)