X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-update-index.c;h=dd43d5bef425af318a884bfc235a4aff40931633;hb=a9d98a148dd5ed14d9e74a1dfc5ec1ca3632f4f0;hp=560497750586ec61be4e34de6dedd9c307129817;hpb=b63bc0bc3152ca42ba1c9fa9bed73da061beeca2;p=git.git diff --git a/builtin-update-index.c b/builtin-update-index.c index 560497750..dd43d5bef 100644 --- a/builtin-update-index.c +++ b/builtin-update-index.c @@ -742,8 +742,7 @@ int cmd_update_index(int argc, const char **argv, const char *prefix) if (newfd < 0) { if (refresh_flags & REFRESH_QUIET) exit(128); - die("unable to create '%s.lock': %s", - get_index_file(), strerror(lock_error)); + unable_to_lock_index_die(get_index_file(), lock_error); } if (write_cache(newfd, active_cache, active_nr) || commit_locked_index(lock_file))