diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-06-22 08:30:38 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-06-22 08:30:38 -0700 |
commit | 21919d396a3a05ccb8d6b538b246500f01585bb7 (patch) | |
tree | 0b7d4710abcdb0b637557808064cd40bc3b72da6 /merge-recursive.c | |
parent | tests: remove unnecessary '^' from 'expr' regular expression (diff) | |
parent | Remove a redundant errno test in a usage of remove_path (diff) | |
download | tgif-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.c | 2 |
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; |