summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2020-07-08 11:07:42 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-09-08 13:46:38 (GMT)
commit69d985c0c3c6576f6d408a0930dfdc61dee3d79d (patch)
tree75dab7d75ca07eec87c289034d57957a1b4acfac /bitbake/lib/bb/fetch2/git.py
parent773e56f0e55760bea9cb79390441145f7953d1a7 (diff)
downloadpoky-pyro.tar.gz
bitbake: fetch2: Change git fetcher not to destroy old referencespyro
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: 08aafc53ba911337d2d3558654b06f294ae634e2) 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 7442f84..f5d14cc 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -267,7 +267,7 @@ class Git(FetchMethod):
267 logger.debug(1, "No Origin") 267 logger.debug(1, "No Origin")
268 268
269 runfetchcmd("%s remote add --mirror=fetch origin %s" % (ud.basecmd, repourl), d, workdir=ud.clonedir) 269 runfetchcmd("%s remote add --mirror=fetch origin %s" % (ud.basecmd, repourl), d, workdir=ud.clonedir)
270 fetch_cmd = "LANG=C %s fetch -f --prune --progress %s refs/*:refs/*" % (ud.basecmd, repourl) 270 fetch_cmd = "LANG=C %s fetch -f --progress %s refs/*:refs/*" % (ud.basecmd, repourl)
271 if ud.proto.lower() != 'file': 271 if ud.proto.lower() != 'file':
272 bb.fetch2.check_network_access(d, fetch_cmd, ud.url) 272 bb.fetch2.check_network_access(d, fetch_cmd, ud.url)
273 progresshandler = GitProgressHandler(d) 273 progresshandler = GitProgressHandler(d)