summaryrefslogtreecommitdiff
path: root/git-ls-remote.sh
diff options
context:
space:
mode:
authorNick Hengeveld <nickh@reactrix.com>2006-04-04 11:01:30 -0700
committerJunio C Hamano <junkio@cox.net>2006-04-04 14:36:22 -0700
commit7fa8ddd6e283f120938e379c980624798561c32d (patch)
tree9869d38109feb7739d123bc85ae3e566386d18ef /git-ls-remote.sh
parent810e1523753553968aac827f57e0e24fc9af6546 (diff)
downloadgit-7fa8ddd6e283f120938e379c980624798561c32d.tar.gz
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>
Diffstat (limited to 'git-ls-remote.sh')
-rwxr-xr-xgit-ls-remote.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-ls-remote.sh b/git-ls-remote.sh
index 2c9a588d21..b6882a90c1 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"
;;