summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2020-07-08 12:07:42 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-09-08 14:46:17 +0100
commitb39f4146de84d7b36861859ec669d9c8e2ca77c6 (patch)
tree8d814c7cbef091fba88692415b3fa61d67ec3305 /bitbake/lib/bb/fetch2/git.py
parentcbb677e9a09d5dad34404a851f7c23aeb5122465 (diff)
downloadpoky-b39f4146de84d7b36861859ec669d9c8e2ca77c6.tar.gz
bitbake: fetch2: Change git fetcher not to destroy old referencessumo
It looks like we're about to see a lot of changes in branch names in repos. If we have the prune option here, those old names are lost, the changes propagate to our source mirrors and our old releases break. We have the force option so any replaced references should be replaced, its only orphaned branches which will now be preserved. I believe this behaviour will cause us fewer problems given the changes that look likely to happen. (Bitbake rev: 1df4fb1c9bf2fde0b274374bff1235c4b1f7ac79) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-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 7b618c6fb1..40fe87c49f 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -359,7 +359,7 @@ class Git(FetchMethod):
359 runfetchcmd("%s remote rm origin" % ud.basecmd, d, workdir=ud.clonedir) 359 runfetchcmd("%s remote rm origin" % ud.basecmd, d, workdir=ud.clonedir)
360 360
361 runfetchcmd("%s remote add --mirror=fetch origin %s" % (ud.basecmd, repourl), d, workdir=ud.clonedir) 361 runfetchcmd("%s remote add --mirror=fetch origin %s" % (ud.basecmd, repourl), d, workdir=ud.clonedir)
362 fetch_cmd = "LANG=C %s fetch -f --prune --progress %s refs/*:refs/*" % (ud.basecmd, repourl) 362 fetch_cmd = "LANG=C %s fetch -f --progress %s refs/*:refs/*" % (ud.basecmd, repourl)
363 if ud.proto.lower() != 'file': 363 if ud.proto.lower() != 'file':
364 bb.fetch2.check_network_access(d, fetch_cmd, ud.url) 364 bb.fetch2.check_network_access(d, fetch_cmd, ud.url)
365 progresshandler = GitProgressHandler(d) 365 progresshandler = GitProgressHandler(d)