2005-04-18 21:15:10 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2005-07-08 19:57:21 +02:00
|
|
|
. git-sh-setup-script || die "Not a git archive"
|
|
|
|
|
2005-04-18 21:15:10 +02:00
|
|
|
merge_repo=$1
|
2005-05-25 23:05:13 +02:00
|
|
|
|
|
|
|
merge_name=$(echo "$1" | sed 's:\.git/*$::')
|
|
|
|
merge_head=HEAD
|
2005-06-28 05:10:32 +02:00
|
|
|
type=head
|
|
|
|
if [ "$2" = "tag" ]; then
|
|
|
|
type=tag
|
|
|
|
shift
|
|
|
|
fi
|
2005-05-25 23:05:13 +02:00
|
|
|
if [ "$2" ]
|
|
|
|
then
|
2005-06-28 05:10:32 +02:00
|
|
|
merge_name="$type '$2' of $merge_name"
|
2005-06-28 19:15:10 +02:00
|
|
|
merge_head="refs/${type}s/$2"
|
2005-05-25 23:05:13 +02:00
|
|
|
fi
|
2005-04-18 21:15:10 +02:00
|
|
|
|
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)" \
|
2005-06-21 23:04:13 +02:00
|
|
|
"$(cat "$GIT_DIR"/FETCH_HEAD)" \
|
2005-05-25 23:05:13 +02:00
|
|
|
"$merge_name"
|