Skip to content

Commit 8f45151

Browse files
author
Paolo Tranquilli
committed
Bazel: print workaround for git_lfs_probe.py failing
1 parent fd31e6d commit 8f45151

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

misc/bazel/internal/git_lfs_probe.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,5 +213,12 @@ def get_lfs_object(path):
213213
for resp in get_locations(objects):
214214
print(resp)
215215
except NoEndpointsFound as e:
216-
print(f"ERROR: no valid endpoints found", file=sys.stderr)
216+
print("""\
217+
ERROR: no valid endpoints found, your git authentication method might be currently unsupported by this script.
218+
You can bypass this error by running from semmle-code (this might take a while):
219+
git config lfs.fetchexclude ""
220+
git -C ql config lfs.fetchinclude \\*
221+
git lfs fetch && git lfs checkout
222+
cd ql
223+
git lfs fetch && git lfs checkout""", file=sys.stderr)
217224
sys.exit(1)

0 commit comments

Comments
 (0)