Skip to content

Commit

Permalink
make sure we take merge message from right repo
Browse files Browse the repository at this point in the history
as a side effect, avoid error when other repo doesn't exist anymore...
  • Loading branch information
sigma committed Jul 14, 2012
1 parent 607e131 commit 69a271a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion magit.el
Original file line number Diff line number Diff line change
Expand Up @@ -4550,9 +4550,9 @@ This means that the eventual commit does 'git commit --allow-empty'."
(setq magit-pre-log-edit-window-configuration
(current-window-configuration))
(pop-to-buffer buf)
(setq default-directory dir)
(when (file-exists-p (concat (magit-git-dir) "MERGE_MSG"))
(insert-file-contents (concat (magit-git-dir) "MERGE_MSG")))
(setq default-directory dir)
(magit-log-edit-mode)
(make-local-variable 'magit-buffer-internal)
(setq magit-buffer-internal magit-buf)
Expand Down

0 comments on commit 69a271a

Please sign in to comment.