Match longest repository path towards the shortest pr-950

This was originally from https://github.com/gitblit/gitblit/pull/950 but seems to have been reverted when develop branch was merged with master.
1 file changed