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
|
|
|
|
merge_name="'$2' branch from
|
|
|
|
|
|
|
|
$merge_name"
|
|
|
|
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-05-25 23:05:13 +02:00
|
|
|
git-fetch-script "$merge_repo" "$merge_head"
|
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"
|