[CRITICAL] URC or checking in process wipes certain project files

Summary

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.

Platform(s)

UEFN v40.20

Upload an image

Additional Notes

URC deleted the following files and folders in the project root folder:

.git/
Documentation/
Documentation/*.*
Content/VZ_Verse/.git
Content/VZ_Python/.git
.gitignore
.gitmodules
README.md

In the image you can see that the git repository contains some of these missing files and folders (except .git).

Interestingly Documentation/ is not ignored in .urcignore.

Here’s my current .urcignore file.

.urcignore (1.2 KB)

1 Like

If I had any stashed work in the local git repository branches, it would have been completely lost.

None of the deleted files or folders went into the bin, it’s completely wiped from the system without any traces.


Here’s how the root project folder looked before checking in:

The image shows the state after manually restoring the files from git, not from reverting using urc.

1 Like

Just reproduced it again on my end. I restored the files, then checked in a project change and URC deleted all these files again. :enraged_face: 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!

1 Like

happened also to me!

We’re investigating this actively, and will keep you all posted once we have target release confirmed for a fix.

Linking a related topic here as well: [URC] Unreal Revision Control scans and removes .git and .code-workspace files inside the project tree

1 Like

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.

Update here: we’ve confirmed this issue is fixed in next week’s 40.30 release.

We’re also validating a workaround to give you in the meantime, which we’ll have more info on tomorrow.

Thanks again for your prompt reports and your patience.

FORT-1091746’s status has changed to ‘Ready for QA’. A member of the QA department is investigating the issue.

@Velocity_Zero @Senix to workaround the bug ahead of next week’s release, you may wish to try the following:

  • Close UEFN
  • Locate the urc.dll in C:\Program Files\Epic Games\Fortnite\FortniteGame\Binaries\Win64and copy it to your desktop for safe keeping
  • Drop in the urc.dll attached here—it is the version of the dll that will ship with next week’s release—into that folder and replace the existing one.
  • Relaunch UEFN, work as you would expect, and confirm that the .urcignore is properly respected

Note: If you notice anything amiss you can always replace it again with the copy you made to your desktop to get back to the state you are now.

urc.dll (19.8 MB)