I witnessed this issue yesterday on a contracting project and was confused why my local git repository was missing. Today I witnessed it firsthand how the checking in process wiped multiple folders and files right under my nose. I even saw how the files and folders disappeared in the project root folder.
Please select what you are reporting on:
Unreal Editor for Fortnite
What Type of Bug are you experiencing?
Unreal Revision Control
Steps to Reproduce
Not verified:
Place certain files that are ignored by urc (using .urcignore) into the project root
Do some changes and try checking in (those files should not appear in the checking in list)
Expected Result
URC should ignore some of these local files. It should not delete them!
Observed Result
URC deletes files and folders which it shouldn’t touch.
Just reproduced it again on my end. I restored the files, then checked in a project change and URC deleted all these files again. In the past there was no such issue, it feels like it was introduced with v40.20 or the followup intermediate patch. This is not acceptable!
Hopefully it won’t take too long as this new behavior is very painful to say the least. I’ve been using git for almost 2 years alongside urc without any such issues. Git saved my projects way too many times where urc’s workflow simply was very inconvenient, especially when it comes to reverting partial text file changes.
It seems to work as expected. However I noticed one thing during pushing. URC deletes any empty folder. The desired behavior is to explicitly remove empty project folders, not implicitly. If I move files to a new folder and have one folder empty, it should remain empty and part of the project until I remove it explicitly. e.g. I prepared some dummy folders inside my verse folder to see how I want to structure the project, but URC deleted them all on check-in.
@Velocity_Zero Thanks for confirming the main fix - This other issue sounds like a different situation—just to confirm, are these empty folders that you do (at the point they have content in them) want tracked by URC? Or ones you want ignored/left alone even once they have content in them?
if I had an empty folder after deleting all content from it and it was previously tracked by URC, it should remain tracked unless I explicitly delete it from the project (that was an old bug that iirc was addressed with v40)
if I create an empty folder with no content, it can either be tracked by URC or at least it shouldn’t be deleted on checking in.
For example git does not delete any empty local folders, but it does not commit / track them unless they have content. URC currently however deletes the empty local folder.