diff options
Diffstat (limited to 'builtin-update-index.c')
| -rw-r--r-- | builtin-update-index.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin-update-index.c b/builtin-update-index.c index d1e5cf7539..47d42ed645 100644 --- a/builtin-update-index.c +++ b/builtin-update-index.c @@ -495,7 +495,7 @@ int cmd_update_index(int argc, const char **argv, const char *prefix)  	/* We can't free this memory, it becomes part of a linked list parsed atexit() */  	lock_file = xcalloc(1, sizeof(struct lock_file)); -	newfd = hold_lock_file_for_update(lock_file, get_index_file(), 0); +	newfd = hold_locked_index(lock_file, 0);  	if (newfd < 0)  		lock_error = errno; @@ -661,7 +661,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_lock_file(lock_file)) +		    close(newfd) || commit_locked_index(lock_file))  			die("Unable to write new index file");  	}  | 
