Skip to content

Commit

Permalink
git-ls-remote: send no-cache header when fetching info/refs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nick Hengeveld authored and Junio C Hamano committed Apr 4, 2006
1 parent 810e152 commit 7fa8ddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-ls-remote.sh
Expand Up @@ -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"
;;

Expand Down

0 comments on commit 7fa8ddd

Please sign in to comment.