summaryrefslogtreecommitdiff
path: root/git-fetch.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-10-18 04:47:06 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-10-18 04:47:06 (GMT)
commitcdb3950801fec8e9efa1607093a6e51737bacba0 (patch)
tree3194f5072432ceacf766c450e663900fabc074ac /git-fetch.sh
parent508c1d1c9b13f53783d024ccb28f77d0e6f10e7f (diff)
downloadgit-cdb3950801fec8e9efa1607093a6e51737bacba0.zip
git-cdb3950801fec8e9efa1607093a6e51737bacba0.tar.gz
git-cdb3950801fec8e9efa1607093a6e51737bacba0.tar.bz2
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>
Diffstat (limited to 'git-fetch.sh')
-rwxr-xr-xgit-fetch.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-fetch.sh b/git-fetch.sh
index 0cb1596..31b1cf0 100755
--- a/git-fetch.sh
+++ b/git-fetch.sh
@@ -176,7 +176,7 @@ if test "$tags"
then
taglist=$(git-ls-remote --tags "$remote" |
sed -e '
- /\^{}$/d
+ /\^/d
s/^[^ ]* //
s/.*/&:&/')
if test "$#" -gt 1