[PATCH] Bugfix: read-cache.c:write_cache() misrecords number of entries.
[git/git-svn.git] / git-pull-script
blobdbef56c70b7e40c69517c3ede33544d0e9efcc8a
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 of $merge_name"
10 merge_head="refs/heads/$2"
13 : ${GIT_DIR=.git}
14 : ${GIT_OBJECT_DIRECTORY="${SHA1_FILE_DIRECTORY-"$GIT_DIR/objects"}"}
16 git-fetch-script "$merge_repo" "$merge_head" || exit 1
18 git-resolve-script \
19 "$(cat "$GIT_DIR"/HEAD)" \
20 "$(cat "$GIT_DIR"/MERGE_HEAD)" \
21 "$merge_name"