@@ -493,7 +493,7 @@ static int is_index_unchanged(void)
493
493
struct commit * head_commit ;
494
494
495
495
if (!resolve_ref_unsafe ("HEAD" , RESOLVE_REF_READING , & head_oid , NULL ))
496
- return error (_ ("could not resolve HEAD commit\n " ));
496
+ return error (_ ("could not resolve HEAD commit" ));
497
497
498
498
head_commit = lookup_commit (& head_oid );
499
499
@@ -513,7 +513,7 @@ static int is_index_unchanged(void)
513
513
514
514
if (!cache_tree_fully_valid (active_cache_tree ))
515
515
if (cache_tree_update (& the_index , 0 ))
516
- return error (_ ("unable to update cache tree\n " ));
516
+ return error (_ ("unable to update cache tree" ));
517
517
518
518
return !oidcmp (& active_cache_tree -> oid ,
519
519
& head_commit -> tree -> object .oid );
@@ -699,12 +699,12 @@ static int is_original_commit_empty(struct commit *commit)
699
699
const struct object_id * ptree_oid ;
700
700
701
701
if (parse_commit (commit ))
702
- return error (_ ("could not parse commit %s\n " ),
702
+ return error (_ ("could not parse commit %s" ),
703
703
oid_to_hex (& commit -> object .oid ));
704
704
if (commit -> parents ) {
705
705
struct commit * parent = commit -> parents -> item ;
706
706
if (parse_commit (parent ))
707
- return error (_ ("could not parse parent commit %s\n " ),
707
+ return error (_ ("could not parse parent commit %s" ),
708
708
oid_to_hex (& parent -> object .oid ));
709
709
ptree_oid = & parent -> tree -> object .oid ;
710
710
} else {
0 commit comments