X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-diff.c;h=8d7a5697f2b429f6240a89e28422f48ef18aee3b;hb=47e83e3cc0b5b5e2402afb34b7617515f905b7a7;hp=29365a0b17348982ea806add83f3c95bea43d4f6;hpb=bd8ff616c998da8b08bd59b47644408048b3016d;p=git.git diff --git a/builtin-diff.c b/builtin-diff.c index 29365a0b1..8d7a5697f 100644 --- a/builtin-diff.c +++ b/builtin-diff.c @@ -190,7 +190,7 @@ static void refresh_index_quietly(void) refresh_cache(REFRESH_QUIET|REFRESH_UNMERGED); if (active_cache_changed && - !write_cache(fd, active_cache, active_nr) && !close(fd)) + !write_cache(fd, active_cache, active_nr)) commit_locked_index(lock_file); rollback_lock_file(lock_file);