2005-04-18 21:15:10 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# use "$1" or something in a real script, this
|
|
|
|
# just hard-codes it.
|
|
|
|
#
|
|
|
|
merge_repo=$1
|
2005-05-05 02:02:16 +02:00
|
|
|
merge_name=${2:-HEAD}
|
2005-04-18 21:15:10 +02:00
|
|
|
|
|
|
|
echo "Getting object database"
|
2005-04-29 21:08:03 +02:00
|
|
|
rsync -avz --ignore-existing $merge_repo/objects/. ${SHA1_FILE_DIRECTORY:-.git/objects}/.
|
2005-04-18 21:15:10 +02:00
|
|
|
|
2005-05-05 02:02:16 +02:00
|
|
|
echo "Getting remote $merge_name"
|
|
|
|
rsync -L $merge_repo/$merge_name .git/MERGE_HEAD || exit 1
|
2005-04-18 21:15:10 +02:00
|
|
|
|
2005-05-05 20:43:30 +02:00
|
|
|
git-resolve-script "$(cat .git/HEAD)" "$(cat .git/MERGE_HEAD)" "$merge_repo"
|