diff mbox series

fetch2/git: Clarify error about missing LFS support

Message ID 20260902122649.1466784-1-pkj@axis.com
State Accepted, archived
Commit f4f453ffab964b93d6f2d5725da3044d0cd1097d
Headers show
Series fetch2/git: Clarify error about missing LFS support | expand

Commit Message

Peter Kjellerstedt Sept. 2, 2026, 12:26 p.m. UTC
Not everyone knows that lfs=0 is a parameter that shall be added to the
URL to ignore the LFS contents.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
 lib/bb/fetch2/git.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py
index 0bb2ea39a..924a8f7ae 100644
--- a/lib/bb/fetch2/git.py
+++ b/lib/bb/fetch2/git.py
@@ -886,8 +886,8 @@  class Git(FetchMethod):
         """
         if shutil.which("git-lfs", path=d.getVar('PATH')) is None:
             raise bb.fetch2.FetchError(
-                "Repository %s has LFS content, install git-lfs on host to download (or set lfs=0 "
-                "to ignore it)" % self._get_repo_url(ud))
+                "Repository %s has LFS content, either install git-lfs on the host to download it, "
+                "or ignore it by adding lfs=0 as a parameter to the URL" % self._get_repo_url(ud))
 
     def _get_repo_url(self, ud):
         """