git-clone: do not special case dumb http.
Underlying http-fetch is supposed to be capable of handling packed repositories just fine, so no need to special case it in the wrapper script. Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Dec 22, 2005 at 16:01 UTC
056211053b7516a57ff7a6dd02f503ecef6fca70
1 file changed
+1
-15
git-clone.sh
+1
-15
@@ -31,25 +31,11 @@ clone_dumb_http () {
31
cd "$2" &&
32
clone_tmp='.git/clone-tmp' &&
33
mkdir -p "$clone_tmp" || exit 1
34
- http_fetch "$1/info/refs" "$clone_tmp/refs" &&
35
- http_fetch "$1/objects/info/packs" "$clone_tmp/packs" || {
34
+ http_fetch "$1/info/refs" "$clone_tmp/refs" || {
35
echo >&2 "Cannot get remote repository information.
36
Perhaps git-update-server-info needs to be run there?"
37
exit 1;
38
}
40
- while read type name
41
- do
42
- case "$type" in
43
- P) ;;
44
- *) continue ;;
45
- esac &&
46
-
47
- idx=`expr "$name" : '\(.*\)\.pack'`.idx
48
- http_fetch "$1/objects/pack/$name" ".git/objects/pack/$name" &&
49
- http_fetch "$1/objects/pack/$idx" ".git/objects/pack/$idx" &&
50
- git-verify-pack ".git/objects/pack/$idx" || exit 1
51
- done <"$clone_tmp/packs"
52
-
39
while read sha1 refname
40
do
41
name=`expr "$refname" : 'refs/\(.*\)'` &&