aboutsummaryrefslogtreecommitdiff
path: root/git-fetch.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-10-17 21:47:06 -0700
committerJunio C Hamano <junkio@cox.net>2005-10-17 21:47:06 -0700
commitcdb3950801fec8e9efa1607093a6e51737bacba0 (patch)
tree3194f5072432ceacf766c450e663900fabc074ac /git-fetch.sh
parent508c1d1c9b13f53783d024ccb28f77d0e6f10e7f (diff)
downloadgit-cdb3950801fec8e9efa1607093a6e51737bacba0.tar.gz
git-cdb3950801fec8e9efa1607093a6e51737bacba0.tar.xz
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 0cb1596f5..31b1cf030 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