Makefile: installing git in cygwin 1.7.0
[gitweb.git] / combine-diff.c
index b3b86aebcb81972ca50a031f4e15bb7a905101e0..066ce841ed76e03dd87e789f6688cc3f5411ba64 100644 (file)
@@ -712,9 +712,7 @@ static void show_patch_diff(struct combine_diff_path *elem, int num_parent,
                        result_size = buf.len;
                        result = strbuf_detach(&buf, NULL);
                        elem->mode = canon_mode(st.st_mode);
-               }
-               else if (0 <= (fd = open(elem->path, O_RDONLY)) &&
-                        !fstat(fd, &st)) {
+               } else if (0 <= (fd = open(elem->path, O_RDONLY))) {
                        size_t len = xsize_t(st.st_size);
                        ssize_t done;
                        int is_file, i;