X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=builtin-update-index.c;h=c3a14c74ed00db592db55a018db37657148a9900;hb=3960a951795819e6cd09422e15092b45cdd46f73;hp=e1a938d8971f11e1a1e963913ab23ff6acc0cea9;hpb=f5bf6feb05b8c89c448ded6e6fad0eb58ef35463;p=git.git diff --git a/builtin-update-index.c b/builtin-update-index.c index e1a938d89..c3a14c74e 100644 --- a/builtin-update-index.c +++ b/builtin-update-index.c @@ -738,7 +738,7 @@ int cmd_update_index(int argc, const char **argv, const char *prefix) get_index_file(), strerror(lock_error)); } if (write_cache(newfd, active_cache, active_nr) || - close(newfd) || commit_locked_index(lock_file)) + commit_locked_index(lock_file)) die("Unable to write new index file"); }