summaryrefslogtreecommitdiff
path: root/builtin-rev-parse.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-09-16 17:58:20 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-09-16 18:03:36 (GMT)
commitbe4a015b0fed2bd96e509f45b80b63db056b9ca9 (patch)
treedd3354d56bc9a438951b4839a384d37089dea3df /builtin-rev-parse.c
parente7676d2f6454c9c99e600ee2ce3c7205a9fcfb5f (diff)
downloadgit-be4a015b0fed2bd96e509f45b80b63db056b9ca9.zip
git-be4a015b0fed2bd96e509f45b80b63db056b9ca9.tar.gz
git-be4a015b0fed2bd96e509f45b80b63db056b9ca9.tar.bz2
http-fetch.c: consolidate code to detect missing fetch target
At a handful places we check two error codes from curl library to see if the file we asked was missing from the remote (e.g. we asked for a loose object when it is in a pack) to decide what to do next. This consolidates the check into a single function. NOTE: the original did not check for HTTP_RETURNED_ERROR when error code is 404, but this version does to make sure 404 is from HTTP and not some other protcol. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-rev-parse.c')
0 files changed, 0 insertions, 0 deletions