File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1379,7 +1379,7 @@ mod tests {
13791379 . ancestors ( )
13801380 . find ( |ancestor| ancestor. file_name ( ) . is_some_and ( |name| name == "repo" ) )
13811381 . unwrap_or ( path) ;
1382- if UNKNOWN_PATH_ATTEMPTS . fetch_add ( 1 , Ordering :: SeqCst ) == 0 {
1382+ if UNKNOWN_PATH_ATTEMPTS . fetch_add ( 1 , Ordering :: SeqCst ) == 1 {
13831383 return crate :: worktree:: GitRepoIdentityOutcome :: Unknown ;
13841384 }
13851385 crate :: worktree:: GitRepoIdentityOutcome :: Resolved ( crate :: worktree:: GitRepoIdentity {
Original file line number Diff line number Diff line change @@ -1623,7 +1623,7 @@ mod source_matcher_cache_tests {
16231623 . ancestors ( )
16241624 . find ( |ancestor| ancestor. file_name ( ) . is_some_and ( |name| name == "repo" ) )
16251625 . unwrap_or ( path) ;
1626- if UNKNOWN_PATH_ATTEMPTS . fetch_add ( 1 , Ordering :: SeqCst ) == 0 {
1626+ if UNKNOWN_PATH_ATTEMPTS . fetch_add ( 1 , Ordering :: SeqCst ) == 1 {
16271627 return crate :: worktree:: GitRepoIdentityOutcome :: Unknown ;
16281628 }
16291629 crate :: worktree:: GitRepoIdentityOutcome :: Resolved ( crate :: worktree:: GitRepoIdentity {
You can’t perform that action at this time.
0 commit comments