Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git-ls-remote: send no-cache header when fetching info/refs
author
Nick Hengeveld
<nickh@reactrix.com>
Tue, 4 Apr 2006 18:01:30 +0000
(11:01 -0700)
committer
Junio C Hamano
<junkio@cox.net>
Tue, 4 Apr 2006 21:36:22 +0000
(14:36 -0700)
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>
git-ls-remote.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
810e152
)
diff --git
a/git-ls-remote.sh
b/git-ls-remote.sh
index 2c9a588d21e4eaf6358148949ace2dc825798c55..b6882a90c15a7b706966e608e00facbb80f26422 100755
(executable)
--- 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
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"
;;
echo "failed slurping"
;;