From 33b8303466af9a839265abc9829e5479f6f12488 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Fri, 12 Aug 2005 02:08:29 -0700 Subject: fetch-pack: start multi-head pulling. This is a beginning of resurrecting the multi-head pulling support for git-fetch-pack command. The git-fetch-script wrapper still only knows about fetching a single head, without renaming, so it is not very useful unless you directly call git-fetch-pack itself yet. It also fixes a longstanding obsolete description of how the command discovers the list of local commits. --- git-fetch-script | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'git-fetch-script') diff --git a/git-fetch-script b/git-fetch-script index 24f0a5ec82..ea097144f7 100755 --- a/git-fetch-script +++ b/git-fetch-script @@ -31,6 +31,10 @@ rsync://*) ;; *) head=$(git-fetch-pack "$merge_repo" "$merge_head") + if h=`expr "$head" : '\([^ ][^ ]*\) '` + then + head=$h + fi ;; esac || exit 1 -- cgit v1.2.3