Do not remove the trailing slash of URL if has it no path component

This allows to clone git://192.168.1.5/

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>