Search Issue Tracker
Fixed in 2020.1.X
Votes
0
Found in
2017.4.0f1
2018.4.0f1
2019.2.0a1
2019.3.0a1
2020.1.0a1
Issue ID
1177654
Regression
No
[VCS] Pulled empty folder .meta files are automatically deleted after pulling changes with Git
How to reproduce:
- User 1 with an empty folder runs Unity which creates a .meta file.
- User 1 commits and pushes the .meta file.
- User 2 pulls, and gets the new .meta file.
- User 2 opens Unity, but since there is no corresponding folder for the .meta file, Unity deletes the .meta file.
- User 2 commits the deleted .meta file.
- User 1 pulls again, runs Unity, and since the empty folder still exists on their computer, the .meta file is created again.
Expected result: The empty folder is automatically created when pulling its .meta file or alternatively .meta files for empty folders can't be pushed at all
Actual result: The empty folder's .meta file is automatically deleted after pulling it with Git
Reproduced in: 2020.1.0a1, 2019.3.0a12, 2019.2.2f1, 2018.4.7f1, 2017.4.32f1
Note: This behaviour does not reproduce with Perforce, with Perforce the empty folder is automatically created when pulling its .meta file. The folder does not get created when reverting lone .meta files though.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- NullReferenceException is thrown when assigning an Object to a custom DebugUI.ObjectField in Rendering Debugger
- Crash on D3D12CommonShader::ApplyGpuProgram when attaching material which samples "_UnityFBInput0" to "Full Screen Pass Renderer Feature" Component
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
- Game view is rendered white when viewing the Editor with HDR display and Post Proccesing is enabled on the Main Camera with 2D URP
Add comment