git-shell-verify: make leading/trailing '/' optional
commit009cf77982b4cb707010f1cf884b1c9ef22fafe7
authorKyle J. McKay <mackyle@gmail.com>
Tue, 2 Jul 2013 00:38:10 +0000 (1 17:38 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Tue, 2 Jul 2013 00:38:10 +0000 (1 17:38 -0700)
treeb6d6adee677f5c90fdc6ba4f38cbb513dd893195
parent5445ceea4fc61c677495c0afe39786bcdd46a097
git-shell-verify: make leading/trailing '/' optional

This means that if the repository url is:

  ssh://example.com/srv/git/example.git

Then all of the following will be accepted:

  ssh://example.com/srv/git/example.git
  ssh://example.com/srv/git/example.git/
  example.com:/srv/git/example.com
  example.com:srv/git/example.com
  example.com:/srv/git/example.com/
  example.com:srv/git/example.com/

Previously the ones where the path part lacked a leading '/'
and/or added a trailing '/' were not accepted.
bin/git-shell-verify