SRombauts / UEGitPlugin

Unreal Engine 5 Git LFS 2 Source Control Plugin (beta)
http://srombauts.github.io/UEGitPlugin
MIT License
806 stars 165 forks source link

Checkout not working #109

Open MatzeOGH opened 4 years ago

MatzeOGH commented 4 years ago

Unreal Engine 2.22 Git Azure Dev Ops with LFS

Failes to check out files every time. Successfully locks files but cannot check in from within the engine.

SRombauts commented 4 years ago

Sorry for the very long delay: have you finally succeed? Or do you have logs so I can have a look?

MatzeOGH commented 4 years ago

NP

No I gave up and removed the plugin from the project. git LFS locked all assets in the project but the checkout failed every time. Leaving assets locked and not editable .

ArosPrince commented 4 years ago

We had the very same issue and it seems to go away, if you set the LFS lock name to exactly the same string as your git user name.

To elaborate a bit on the subject... When you select the Connect to source control option from the toolbar and select the Git LFS 2 plugin, you should enable the checkbox labeled "Uses Git LFS2 file Locking workflow". But the user name you fill in there has to be exactly the same as the one displayed two lines above. If it's different, it will still connect and let you lock but it behaves exactly the way you described.

It seems to me, that it is then not able to match the user who has the lock with you and does not recognize that the person holding the lock is in fact you...

That said, I do not understand why you're supposed to fill that name anyway, since there already is the git User Name correctly detected just two lines above...

MatzeOGH commented 4 years ago

That is great news. I really have to try this at some point. Thanks for providing a possible solution

RumbleballTheReal commented 3 years ago

Same problem. Changing the user name in the source control configuration window to exactly the name that is displayed by "git lfs locks", as @ArosPrince described worked for me.

The output log of unreal does not display anything usefull. Using GithubDesktop app for a repository in GitLab.

ArosPrince commented 3 years ago

@RumbleballTheReal A colleague of mine was going through the sources to figure the root cause and if I remember correctly he had some explanation for this. I'll ask him to elaborate.

petrca commented 3 years ago

@ArosPrince We run into similar problem. The explanation is quite simple. We are using GitLab for repo hosting. The usernames returned by git lfs command are not git user names however in our case there were "GitLab full names" from the GitLab profile page. So, in the source control dialog you have to fill in this "full name" instead of your git username which you set in the git config file.

PhilBax commented 3 years ago

Thanks to the comments, I determined that I had to set my name to "Phillip Baxter ()" to get checkout to work correctly!