From: Nick Hengeveld Date: Tue, 4 Apr 2006 18:01:30 +0000 (-0700) Subject: git-ls-remote: send no-cache header when fetching info/refs X-Git-Tag: v1.3.0-rc2~3 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=7fa8ddd6e283f120938e379c980624798561c32d;p=git.git git-ls-remote: send no-cache header when fetching info/refs Proxies should not cache this file as it can cause a client to end up with a stale version, as reported here: http://marc.theaimsgroup.com/?l=git&m=114407944125389 Signed-off-by: Nick Hengeveld Signed-off-by: Junio C Hamano --- diff --git a/git-ls-remote.sh b/git-ls-remote.sh index 2c9a588d..b6882a90 100755 --- a/git-ls-remote.sh +++ b/git-ls-remote.sh @@ -53,7 +53,7 @@ http://* | https://* ) if [ -n "$GIT_SSL_NO_VERIFY" ]; then curl_extra_args="-k" fi - curl -nsf $curl_extra_args "$peek_repo/info/refs" || + curl -nsf $curl_extra_args --header "Pragma: no-cache" "$peek_repo/info/refs" || echo "failed slurping" ;;