summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: be4a015)
raw | patch | inline | side by side (parent: be4a015)
author | Junio C Hamano <junkio@cox.net> | |
Sat, 16 Sep 2006 18:06:02 +0000 (11:06 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 16 Sep 2006 18:06:02 +0000 (11:06 -0700) |
Based on Sasha Khapyorsky's patch but adjusted to the refactored
"missing target" detection code.
It might have been better if the program were called
git-url-fetch but it is too late now ;-).
Signed-off-by: Junio C Hamano <junkio@cox.net>
"missing target" detection code.
It might have been better if the program were called
git-url-fetch but it is too late now ;-).
Signed-off-by: Junio C Hamano <junkio@cox.net>
http-fetch.c | patch | blob | history |
diff --git a/http-fetch.c b/http-fetch.c
index 98cf52db463d7f526e9583379e93902e4e3571af..bc74f30f76fe0200f6c7ecc215ee1cd9211670f4 100644 (file)
--- a/http-fetch.c
+++ b/http-fetch.c
return /* file:// URL -- do we ever use one??? */
(result == CURLE_FILE_COULDNT_READ_FILE) ||
/* http:// and https:// URL */
- (code == 404 && result == CURLE_HTTP_RETURNED_ERROR)
+ (code == 404 && result == CURLE_HTTP_RETURNED_ERROR) ||
+ /* ftp:// URL */
+ (code == 550 && result == CURLE_FTP_COULDNT_RETR_FILE)
;
}