LfsSshAuth: Check number of arguments to git-lfs-authenticate command

If the command is called with the wrong number of arguments, i.e. less
than 2, an IndexOutOfBoundsException occurs when attempting to extract
the project and command values from the args array. This then results
in an "internal server error" message being reported to the client.

Add a check, and return a sane error message if the number of arguments
is not as expected.

Change-Id: If44f878fbee1d44ff901ac092d96a9bc5ad04da8
1 file changed
tree: 7db771a45ef38baa1cea69fb032669edf0d98ad0
  1. src/
  2. tools/
  3. .gitignore
  4. bazlets.bzl
  5. BUILD
  6. external_plugin_deps.bzl
  7. WORKSPACE