mirror of
https://github.com/git/git.git
synced 2024-11-25 02:44:48 +08:00
Fix git-resolve-script.
I'd stupidly forgotten one merge_head -> merge conversion, and all my tests were for the fast-forward case that never triggered the bug.
This commit is contained in:
parent
db823d4a5a
commit
d5a72fd622
@ -49,7 +49,7 @@ if [ $? -ne 0 ]; then
|
||||
merge_msg="Automatic merge of $merge_repo"
|
||||
result_tree=$(git-write-tree) || exit 1
|
||||
fi
|
||||
result_commit=$(echo "$merge_msg" | git-commit-tree $result_tree -p $head -p $merge_head)
|
||||
result_commit=$(echo "$merge_msg" | git-commit-tree $result_tree -p $head -p $merge)
|
||||
echo "Committed merge $result_commit"
|
||||
echo $result_commit > .git/HEAD
|
||||
git-checkout-cache -f -a && git-update-cache --refresh
|
||||
|
Loading…
Reference in New Issue
Block a user