UEGitPlugin icon indicating copy to clipboard operation
UEGitPlugin copied to clipboard

LFS File Locks & 'check out' issues

Open alectron opened this issue 4 years ago • 7 comments

Hello, I try to use this for testing with Bitbucket. But, there seem to be fundamental issues with file-locking. i.e. when I do the following (from UE, but similar beahviour in UE if Git-Bash is used for locking).

Set a lock:

LogSourceControl: RunCommand: 'git lfs lock "Content/A/B.uasset"'
LogSourceControl: RunCommand(lfs lock):
Locked Content/A/B.uasset

which then outputs: SourceControl: Locked Content/A/B.uasset So that's a success. Seemingly.

After which the file has been locked succesfully in the git world, but - UE Source Control then errors with: LogSlate: Window 'Unable to Check Out From Source Control!' being destroyed

And file save attempts trigger a warning that the file is writable, but " not checked Out From Source Control".

So - to try to get to the bottom of the issue, and since a "check-out" is a perforce/sub-version concept, and not one that Git has: After successfully setting a git lfs lock (which is achieved succesfully here in git), what else would be needed for UE Source Control and/or the Git Plugin (2.14 beta) to succesfully check-out a file from git/bitbucket...? (also, for the person that set the lock, the file is then write-accessible - yet, UE complaints about the file not being 'checked out')

Cheers.

alectron avatar Feb 07 '20 13:02 alectron

👍

I have the same kind of problem here. git lfs locking and unlocking work fine on command line, but when doing it in UE, gives a error message.

For example, when basically clicking on check out for any asset: image

I get this error message: image

Then, the asset is still correctly locked : image

Also, there is no option to unlock it, but I think this covered in another issue.

AlKoulounil avatar Apr 03 '20 21:04 AlKoulounil

Well, actually , it looks also really similar to issues #116 and #109. Maybe this is all the same.

AlKoulounil avatar Apr 03 '20 21:04 AlKoulounil

Well sorry for the disturbance, the solution in #109 worked for me : I had put my email instead of my git user name in the "uses Git LFS 2 file locking workflow" text box.

AlKoulounil avatar Apr 03 '20 21:04 AlKoulounil

Fix this issue with the previous comment, look #109 . Why this field don't fill with the user name ?

stilobique avatar May 27 '20 11:05 stilobique

I got this exact error on gitlab, username is the same as in gitlab, I also tried using the email as "User to lock files" but didn't work.

Angeloss avatar Oct 30 '20 16:10 Angeloss

Yup, as I said, email does not work. I'd suggest you to check that you made no mistake with your user name (including lower / upper case), it's really what solved the issue in my case.

AlKoulounil avatar Oct 30 '20 22:10 AlKoulounil

I get this issue as well on 4.25 (w/ Azure DevOps). Weirdly, it says it fails but then it actually works if I check git lfs locks. So its just misinterpreting the status or something.

perezd avatar Nov 11 '20 22:11 perezd