summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 13019d4)
raw | patch | inline | side by side (parent: 13019d4)
author | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Thu, 5 May 2005 00:02:16 +0000 (17:02 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Thu, 5 May 2005 00:02:16 +0000 (17:02 -0700) |
People are already starting to use a multi-head model.
git-pull-script | patch | blob | history |
diff --git a/git-pull-script b/git-pull-script
index 9315426e7a79b4cb77852950764de317573de23e..e7e82f49d2a243060dfc653dad200675f8336688 100755 (executable)
--- a/git-pull-script
+++ b/git-pull-script
# just hard-codes it.
#
merge_repo=$1
+merge_name=${2:-HEAD}
rm -f .git/MERGE_HEAD .git/ORIG_HEAD
cp .git/HEAD .git/ORIG_HEAD
echo "Getting object database"
rsync -avz --ignore-existing $merge_repo/objects/. ${SHA1_FILE_DIRECTORY:-.git/objects}/.
-echo "Getting remote head"
-rsync -L $merge_repo/HEAD .git/MERGE_HEAD || exit 1
+echo "Getting remote $merge_name"
+rsync -L $merge_repo/$merge_name .git/MERGE_HEAD || exit 1
head=$(cat .git/HEAD)
merge_head=$(cat .git/MERGE_HEAD)