Skip to contentSkip to conversation

fetch2/git: Clarify error about missing LFS support

PATCH New Peter Kjellerstedt 1 participant 1 message Sep 2

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fetch2/git: Clarify error about missing LFS support

Not everyone knows that lfs=0 is a parameter that shall be added to the URL to ignore the LFS contents.

---
 lib/bb/fetch2/git.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
lib/bb/fetch2/git.py +2 -2
index 0bb2ea39a..924a8f7ae 100644
@@ -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):
         """