2005-04-18 21:15:10 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
merge_repo=$1
|
2005-05-25 23:05:13 +02:00
|
|
|
|
|
|
|
merge_name=$(echo "$1" | sed 's:\.git/*$::')
|
|
|
|
merge_head=HEAD
|
|
|
|
if [ "$2" ]
|
|
|
|
then
|
2005-06-08 19:09:41 +02:00
|
|
|
merge_name="'$2' branch of $merge_name"
|
2005-05-25 23:05:13 +02:00
|
|
|
merge_head="refs/heads/$2"
|
|
|
|
fi
|
2005-04-18 21:15:10 +02:00
|
|
|
|
2005-05-10 07:57:58 +02:00
|
|
|
: ${GIT_DIR=.git}
|
|
|
|
: ${GIT_OBJECT_DIRECTORY="${SHA1_FILE_DIRECTORY-"$GIT_DIR/objects"}"}
|
|
|
|
|
2005-06-07 02:40:22 +02:00
|
|
|
git-fetch-script "$merge_repo" "$merge_head" || exit 1
|
2005-04-18 21:15:10 +02:00
|
|
|
|
2005-05-10 07:57:58 +02:00
|
|
|
git-resolve-script \
|
|
|
|
"$(cat "$GIT_DIR"/HEAD)" \
|
|
|
|
"$(cat "$GIT_DIR"/MERGE_HEAD)" \
|
2005-05-25 23:05:13 +02:00
|
|
|
"$merge_name"
|