Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-08-12 13:08:29 +0400
committerJunio C Hamano <junkio@cox.net>2005-08-12 21:38:21 +0400
commit33b8303466af9a839265abc9829e5479f6f12488 (patch)
treea4cbae5b7ae5f895b8dad09187e57217b4127cf5 /git-fetch-script
parent87b7b84159381f5f0483e425122886cd952e374e (diff)
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.
Diffstat (limited to 'git-fetch-script')
-rwxr-xr-xgit-fetch-script4
1 files changed, 4 insertions, 0 deletions
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