Skip to content

Commit

Permalink
mergetool: Fix abort command when resolving symlinks and deleted files
Browse files Browse the repository at this point in the history
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
  • Loading branch information
Theodore Ts'o committed Mar 29, 2007
1 parent b7b36f9 commit 5a174f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions git-mergetool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ resolve_symlink_merge () {
cleanup_temp_files --save-backup
return
;;
[rR]*)
[rR]*)
git-checkout-index -f --stage=3 -- "$path"
git-add -- "$path"
cleanup_temp_files --save-backup
return
;;
[qQ]*)
[aA]*)
exit 1
;;
esac
Expand All @@ -94,12 +94,12 @@ resolve_deleted_merge () {
cleanup_temp_files --save-backup
return
;;
[dD]*)
[dD]*)
git-rm -- "$path"
cleanup_temp_files
return
;;
[qQ]*)
[aA]*)
exit 1
;;
esac
Expand Down

0 comments on commit 5a174f1

Please sign in to comment.