git-clone: fix dumb protocol transport to clone from pack-pruned ref
This forward-ports a fix from 2986c022
to git-clone.
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
9bc20aa731
commit
928c210a47
@ -60,7 +60,7 @@ Perhaps git-update-server-info needs to be run there?"
|
|||||||
else
|
else
|
||||||
tname=$name
|
tname=$name
|
||||||
fi
|
fi
|
||||||
git-http-fetch $v -a -w "$tname" "$name" "$1" || exit 1
|
git-http-fetch $v -a -w "$tname" "$sha1" "$1" || exit 1
|
||||||
done <"$clone_tmp/refs"
|
done <"$clone_tmp/refs"
|
||||||
rm -fr "$clone_tmp"
|
rm -fr "$clone_tmp"
|
||||||
http_fetch "$1/HEAD" "$GIT_DIR/REMOTE_HEAD" ||
|
http_fetch "$1/HEAD" "$GIT_DIR/REMOTE_HEAD" ||
|
||||||
|
Loading…
Reference in New Issue
Block a user