@@ -152,7 +152,10 @@ pub fn has_changed_since(git_dir: &Path, base: &str, paths: &[&str]) -> bool {
152152 } )
153153}
154154
155- const LEGACY_BORS_EMAIL : & str = "bors@rust-lang.org" ;
155+ // Temporary e-mail used by new bors for merge commits for a few days, until it learned how to reuse
156+ // the original homu e-mail
157+ // FIXME: remove in Q2 2026
158+ const TEMPORARY_BORS_EMAIL : & str = "122020455+rust-bors[bot]@users.noreply.github.com" ;
156159
157160/// Escape characters from the git user e-mail, so that git commands do not interpret it as regex
158161/// special characters.
@@ -193,10 +196,9 @@ fn get_latest_upstream_commit_that_modified_files(
193196 & escape_email_git_regex ( git_config. git_merge_commit_email ) ,
194197 ] ) ;
195198
196- // Also search for legacy bors account, before we accrue enough commits to
197- // have changes to all relevant file paths done by new bors.
198- if git_config. git_merge_commit_email != LEGACY_BORS_EMAIL {
199- git. args ( [ "--author" , LEGACY_BORS_EMAIL ] ) ;
199+ // Also search for temporary bors account
200+ if git_config. git_merge_commit_email != TEMPORARY_BORS_EMAIL {
201+ git. args ( [ "--author" , & escape_email_git_regex ( TEMPORARY_BORS_EMAIL ) ] ) ;
200202 }
201203
202204 if !target_paths. is_empty ( ) {
@@ -248,10 +250,9 @@ pub fn get_closest_upstream_commit(
248250 base,
249251 ] ) ;
250252
251- // Also search for legacy bors account, before we accrue enough commits to
252- // have changes to all relevant file paths done by new bors.
253- if config. git_merge_commit_email != LEGACY_BORS_EMAIL {
254- git. args ( [ "--author" , LEGACY_BORS_EMAIL ] ) ;
253+ // Also search for temporary bors account
254+ if config. git_merge_commit_email != TEMPORARY_BORS_EMAIL {
255+ git. args ( [ "--author" , & escape_email_git_regex ( TEMPORARY_BORS_EMAIL ) ] ) ;
255256 }
256257
257258 let output = output_result ( & mut git) ?. trim ( ) . to_owned ( ) ;
0 commit comments