summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2024-02-28 11:27:12 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-03-03 16:26:17 +0000
commit2689d8cf22d3809923aad5bd87e5e3e1821ffc82 (patch)
tree955e066591a3e865f9d2166d49a95f4928ccdf5e /bitbake/lib/bb/fetch2/git.py
parent9f60a166460c7c864e969ec4290693c62d6f4484 (diff)
downloadpoky-2689d8cf22d3809923aad5bd87e5e3e1821ffc82.tar.gz
bitbake: fetch/git: Avoid clean upon failure
Currently when git fetches fail, it destroys all the existing local clone data. For large repositories this can introduce long build delays when for example, you just typo'd the git revision hash. The git fetcher should be able to recover most directories so when the fetch is for a git repo, avoid removing things unless clean is explicitly called (e.g. a -c cleanall task). (Bitbake rev: 1b3cd039fe19b24bd4be9a0202a98cdcbb0e9443) 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.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index b43ee0da39..b9dc576d47 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -150,6 +150,9 @@ class Git(FetchMethod):
150 def supports_checksum(self, urldata): 150 def supports_checksum(self, urldata):
151 return False 151 return False
152 152
153 def cleanup_upon_failure(self):
154 return False
155
153 def urldata_init(self, ud, d): 156 def urldata_init(self, ud, d):
154 """ 157 """
155 init git specific variable within url data 158 init git specific variable within url data