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 <nickh@reactrix.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Nick Hengeveld committed
Apr 4, 2006 at 11:01 UTC
7fa8ddd6e283f120938e379c980624798561c32d
1 file changed
+1
-1
git-ls-remote.sh
+1
-1
@@ -53,7 +53,7 @@ http://* | https://* )
53
if [ -n "$GIT_SSL_NO_VERIFY" ]; then
54
curl_extra_args="-k"
55
fi
56
- curl -nsf $curl_extra_args "$peek_repo/info/refs" ||
56
+ curl -nsf $curl_extra_args --header "Pragma: no-cache" "$peek_repo/info/refs" ||
57
echo "failed slurping"
58
;;
59