Reproduction steps:
1. Create a repository from the attached project “BuildBee” via a source control application
2. In the source control application checkout the “init commit” commit
3. Open the project in the Editor
4. Build the Player ( File > Build Settings, then in Build Settings window select Build)
5. Close the Editor
6. In the source control application, checkout the “config 2” commit
7. Repeat steps 3 and 4
8. Observe the “Editor.log” file (default location for Win10: “C:\Users{username}\AppData\Local\Unity\Editor”)
Expected result: There are no “could not be found” errors for files that were removed via source control
Actual result: “error CS2001: Source file 'D:\Unity cases\Rsp\Assets/WidgetY.cs' could not be found.” error appears
Reproducible with: 2022.2.0a12, 2022.3.4f1, 2023.1.2f1, 2023.2.0a21
Not reproducible with: 2021.3.27f1, 2022.2.0a11
Reproducible on: Windows 10
Note: The application “Fork” was used for the reproduction steps