@@ -455,7 +455,7 @@ static const char *prepare_index(const char **argv, const char *prefix,
455455 refresh_cache_or_die (refresh_flags );
456456 cache_tree_update (& the_index , WRITE_TREE_SILENT );
457457 if (write_locked_index (& the_index , & index_lock , 0 ))
458- die (_ ("unable to write new_index file" ));
458+ die (_ ("unable to write new index file" ));
459459 commit_style = COMMIT_NORMAL ;
460460 ret = get_lock_file_path (& index_lock );
461461 goto out ;
@@ -479,7 +479,7 @@ static const char *prepare_index(const char **argv, const char *prefix,
479479 cache_tree_update (& the_index , WRITE_TREE_SILENT );
480480 if (write_locked_index (& the_index , & index_lock ,
481481 COMMIT_LOCK | SKIP_IF_UNCHANGED ))
482- die (_ ("unable to write new_index file" ));
482+ die (_ ("unable to write new index file" ));
483483 commit_style = COMMIT_AS_IS ;
484484 ret = get_index_file ();
485485 goto out ;
@@ -527,7 +527,7 @@ static const char *prepare_index(const char **argv, const char *prefix,
527527 refresh_index (& the_index , REFRESH_QUIET , NULL , NULL , NULL );
528528 cache_tree_update (& the_index , WRITE_TREE_SILENT );
529529 if (write_locked_index (& the_index , & index_lock , 0 ))
530- die (_ ("unable to write new_index file" ));
530+ die (_ ("unable to write new index file" ));
531531
532532 hold_lock_file_for_update (& false_lock ,
533533 git_path ("next-index-%" PRIuMAX ,
@@ -1862,7 +1862,7 @@ int cmd_commit(int argc, const char **argv, const char *prefix)
18621862
18631863 if (commit_index_files ())
18641864 die (_ ("repository has been updated, but unable to write\n"
1865- "new_index file. Check that disk is not full and quota is\n"
1865+ "new index file. Check that disk is not full and quota is\n"
18661866 "not exceeded, and then \"git restore --staged :/\" to recover." ));
18671867
18681868 git_test_write_commit_graph_or_die ();
0 commit comments