Forward port the "funny ref avoidance" in clone and fetch from maint branch.
Somehow I forgot to forward port these fixes. "git clone" from a repository prepared with the latest update-server-info would fail without this patch. Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
@ -53,7 +53,11 @@ Perhaps git-update-server-info needs to be run there?"
|
|||||||
while read sha1 refname
|
while read sha1 refname
|
||||||
do
|
do
|
||||||
name=`expr "$refname" : 'refs/\(.*\)'` &&
|
name=`expr "$refname" : 'refs/\(.*\)'` &&
|
||||||
|
case "$name" in
|
||||||
|
*^*) ;;
|
||||||
|
*)
|
||||||
git-http-fetch -v -a -w "$name" "$name" "$1/" || exit 1
|
git-http-fetch -v -a -w "$name" "$name" "$1/" || exit 1
|
||||||
|
esac
|
||||||
done <"$clone_tmp/refs"
|
done <"$clone_tmp/refs"
|
||||||
rm -fr "$clone_tmp"
|
rm -fr "$clone_tmp"
|
||||||
}
|
}
|
||||||
|
@ -176,7 +176,7 @@ if test "$tags"
|
|||||||
then
|
then
|
||||||
taglist=$(git-ls-remote --tags "$remote" |
|
taglist=$(git-ls-remote --tags "$remote" |
|
||||||
sed -e '
|
sed -e '
|
||||||
/\^{}$/d
|
/\^/d
|
||||||
s/^[^ ]* //
|
s/^[^ ]* //
|
||||||
s/.*/&:&/')
|
s/.*/&:&/')
|
||||||
if test "$#" -gt 1
|
if test "$#" -gt 1
|
||||||
|
Reference in New Issue
Block a user