Skip to content

Commit

Permalink
Add ftp:// protocol support for git-http-fetch
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Sep 16, 2006
1 parent be4a015 commit 4adffc7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion http-fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ static int missing__target(int code, int result)
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)
;
}

Expand Down

0 comments on commit 4adffc7

Please sign in to comment.