decode file:// and ssh:// URLs
authorJeff King <peff@peff.net>
Sun, 23 May 2010 09:19:44 +0000 (05:19 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 May 2010 23:48:34 +0000 (16:48 -0700)
commit9d2e942070b235e1f4a0b8dd4c55a6b3f0fe914a
tree9b5415483a8e35198ab92e188cc98230f8966baf
parent638794cde08bb785410a92d293969949a1f5a846
decode file:// and ssh:// URLs

We generally treat these as equivalent to "/path/to/repo"
and "host:path_to_repo" respectively. However, they are URLs
and as such may be percent-encoded. The current code simply
uses them as-is without any decoding.

With this patch, we will now percent-decode any file:// or
ssh:// url (or ssh+git, git+ssh, etc) at the transport
layer. We continue to treat plain paths and "host:path"
syntax literally.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
connect.c
t/t5601-clone.sh