summaryrefslogtreecommitdiff
path: root/merge-recursive.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-06-22 08:30:38 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-06-22 08:30:38 -0700
commit21919d396a3a05ccb8d6b538b246500f01585bb7 (patch)
tree0b7d4710abcdb0b637557808064cd40bc3b72da6 /merge-recursive.c
parenttests: remove unnecessary '^' from 'expr' regular expression (diff)
parentRemove a redundant errno test in a usage of remove_path (diff)
downloadtgif-21919d396a3a05ccb8d6b538b246500f01585bb7.tar.xz
Merge branch 'pc/remove-warn' into maint
* pc/remove-warn: Remove a redundant errno test in a usage of remove_path Introduce remove_or_warn function Implement the rmdir_or_warn function Generalise the unlink_or_warn function
Diffstat (limited to 'merge-recursive.c')
-rw-r--r--merge-recursive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/merge-recursive.c b/merge-recursive.c
index 917397ca7a..206c103635 100644
--- a/merge-recursive.c
+++ b/merge-recursive.c
@@ -409,7 +409,7 @@ static int remove_file(struct merge_options *o, int clean,
return -1;
}
if (update_working_directory) {
- if (remove_path(path) && errno != ENOENT)
+ if (remove_path(path))
return -1;
}
return 0;