projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17ebe97
)
Make sure we error out if we can't remove a file on automatic merges.
author
Linus Torvalds
<torvalds@ppc970.osdl.org>
Wed, 8 Jun 2005 23:35:30 +0000
(16:35 -0700)
committer
Linus Torvalds
<torvalds@ppc970.osdl.org>
Wed, 8 Jun 2005 23:35:30 +0000
(16:35 -0700)
Pointed out by Junio.
git-merge-one-file-script
patch
|
blob
|
history
diff --git
a/git-merge-one-file-script
b/git-merge-one-file-script
index
cf42ff6
..
787ac44
100755
(executable)
--- a/
git-merge-one-file-script
+++ b/
git-merge-one-file-script
@@
-21,13
+21,14
@@
case "${1:-.}${2:-.}${3:-.}" in
"$1..")
echo "WARNING: $4 is removed in both branches."
echo "WARNING: This is a potential rename conflict."
+ rm -f -- "$4" || exit 1
exec git-update-cache --remove -- "$4" ;;
#
# Deleted in one and unchanged in the other.
#
"$1.." | "$1.$1" | "$1$1.")
echo "Removing $4"
- rm -f -- "$4"
+ rm -f -- "$4"
|| exit 1
exec git-update-cache --remove -- "$4" ;;
#
# Added in one.