summaryrefslogtreecommitdiff
path: root/git-resolve.sh
diff options
context:
space:
mode:
Diffstat (limited to 'git-resolve.sh')
-rwxr-xr-xgit-resolve.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-resolve.sh b/git-resolve.sh
index 1f559d8cb9..7d8fb54f95 100755
--- a/git-resolve.sh
+++ b/git-resolve.sh
@@ -45,7 +45,7 @@ case "$common" in
"$head")
echo "Updating from $head to $merge."
git-read-tree -u -m $head $merge || exit 1
- echo $merge > "$GIT_DIR"/HEAD
+ git-update-ref HEAD "$merge" "$head"
git-diff-tree -p $head $merge | git-apply --stat
dropheads
exit 0
@@ -99,6 +99,6 @@ if [ $? -ne 0 ]; then
fi
result_commit=$(echo "$merge_msg" | git-commit-tree $result_tree -p $head -p $merge)
echo "Committed merge $result_commit"
-echo $result_commit > "$GIT_DIR"/HEAD
+git-update-ref HEAD "$result_commit" "$head"
git-diff-tree -p $head $result_commit | git-apply --stat
dropheads