Protect get_author_ident_from_commit() from filenames in work tree