Fix compatibility with git-lfs v3

git-lfs v3 introduced a breaking change in the way
it calls git-lfs-authenticate over SSH [1,2] in that,
for ssh:// URLs like the ones used with Gerrit (to
specify the custom 29418 port) it will no longer
strip the first "/", so it'll pass "/projectname"
when git-lfs v2 passed "projectname".
This results in the generated token to later be
rejected at the HTTP endpoints because the 'project'
doesn't match.
The fix here is to simply strip the leading "/", if
any, in the git-lfs-authenticate command.


Bug: Issue 15139
Change-Id: I875c460ee969a0c6740af6054a5a84d9ca354d1b
1 file changed
tree: 283ca9f281d9948d9303c1bb86191ce7468670bc
  1. .settings/
  2. gr-lfs/
  3. src/
  4. .bazelignore
  5. .bazelversion
  6. bazlets.bzl
  7. BUILD