Use stdin reflist passing in git-fetch.sh
authorJulian Phillips <jp3@quantumfyre.co.uk>
Tue, 13 Feb 2007 01:21:41 +0000 (01:21 +0000)
committerJunio C Hamano <junkio@cox.net>
Wed, 14 Feb 2007 05:43:53 +0000 (21:43 -0800)
Use the new stdin reflist passing mechanism for the call to
fetch--tool parse-reflist, allowing passing of more than ~128K
of reflist data.

Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-fetch.sh

index 3bed4091a3826909878938239970a5d947c70d2c..80f63c85f04f9adafa5294f29ebb11b5b9193254 100755 (executable)
@@ -156,7 +156,7 @@ fi
 
 fetch_native () {
 
-  eval=$(git-fetch--tool parse-reflist "$1")
+  eval=$(echo "$1" | git-fetch--tool parse-reflist "-")
   eval "$eval"
 
     ( : subshell because we muck with IFS