diff options
author | Junio C Hamano <junkio@cox.net> | 2005-08-12 02:08:29 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-08-12 10:38:21 -0700 |
commit | 33b8303466af9a839265abc9829e5479f6f12488 (patch) | |
tree | a4cbae5b7ae5f895b8dad09187e57217b4127cf5 /git-fetch-script | |
parent | 87b7b84159381f5f0483e425122886cd952e374e (diff) | |
download | git-33b8303466af9a839265abc9829e5479f6f12488.tar.gz git-33b8303466af9a839265abc9829e5479f6f12488.tar.xz |
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-x | git-fetch-script | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/git-fetch-script b/git-fetch-script index 24f0a5ec8..ea097144f 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 |