summaryrefslogtreecommitdiff
path: root/lib/gitlab_net.rb
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2014-08-27 13:26:27 +0200
committerJacob Vosmaer <contact@jacobvosmaer.nl>2014-08-27 14:42:58 +0200
commitea88c9b2747ffb4cb0481b8cb274ebc4919474db (patch)
treea7894facacdc2f0c29e3abbaa6054bc6a44d6e3f /lib/gitlab_net.rb
parentb5284310c2c9d6f53e983ca5224bea7c48e0f779 (diff)
downloadgitlab-shell-ea88c9b2747ffb4cb0481b8cb274ebc4919474db.tar.gz
Handle invalid number of arguments
When a remote user with a valid SSH key runs something like 'ssh git@gitlab.example.com foobar', gitlab-shell would raise an exception in the GitlabShell#escape_path method. With this change, we catch an invalid number of arguments as soon as possible and exit.
Diffstat (limited to 'lib/gitlab_net.rb')
0 files changed, 0 insertions, 0 deletions