Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Hengeveld <nickh@reactrix.com>2006-04-04 22:01:30 +0400
committerJunio C Hamano <junkio@cox.net>2006-04-05 01:36:22 +0400
commit7fa8ddd6e283f120938e379c980624798561c32d (patch)
tree9869d38109feb7739d123bc85ae3e566386d18ef /git-ls-remote.sh
parent810e1523753553968aac827f57e0e24fc9af6546 (diff)
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"
;;