git-read-tree: make one-way merge also honor the "update" flag
[git/debian.git] / git-pull-script
bloba4ca97c64566419a0dc02e8e719333d1c9240edc
1 #!/bin/sh
3 merge_repo=$1
5 merge_name=$(echo "$1" | sed 's:\.git/*$::')
6 merge_head=HEAD
7 if [ "$2" ]
8 then
9 merge_name="'$2' branch from
11 $merge_name"
12 merge_head="refs/heads/$2"
15 : ${GIT_DIR=.git}
16 : ${GIT_OBJECT_DIRECTORY="${SHA1_FILE_DIRECTORY-"$GIT_DIR/objects"}"}
18 git-fetch-script "$merge_repo" "$merge_head" || exit 1
20 git-resolve-script \
21 "$(cat "$GIT_DIR"/HEAD)" \
22 "$(cat "$GIT_DIR"/MERGE_HEAD)" \
23 "$merge_name"