It was working some time ago (I am using standart Defold sync in most cases). But now I recive an error.
Maybe I broke something in global git settings on something like this, I can’t find a reason(
Maybe somebody can help me?
I get this too and have had it for quite a while both on Windows and Mac and on all projects that points to Defolds servers.
It have made me unable to use git branches (because using git branches with the sync folder was in the past asking to screw your whole project over) and seriously hampers my workflow. Now I do my commits with the command prompt or a client then I have to go into Editor 2, add a space into a random file and then sync. Because the sync functionality doesn’t let you only push, you need to commit something also.
P.S.
This isn’t really relevant tho this topic (it doesn’t even happen if you use alternative hosting).
I don’t know when exactly ( But situation absolutely like yours.
I am using command line or defold editor2 for commit and pull, and Smartgit only for forking with local brunches.
According to our logs it looks like your client tries to be smart and appends “.git” on the repository name (24731). Even though that is a common naming convention, it’s not how we have named the repositories. That might explain why the command line client works (it doesn’t append “.git”).
I have also found a case where a 500 error is returned if you use the wrong access token. Please make sure that your git clients use the right password.
A fix for this misleading error code is on its way…
I solved this on mac (for me at least). I had two problems one of my two users had the wrong access token, so fixing that I didn’t get 500 anymore but 403 which tells me that it tries to use the wrong user.
The second issue is that git saves credentials (I use git-credential-osxkeychain) on the first part of the URL, so all repositories that points towards “http://cr.defold.se:9998” uses the same user.
So I have to force git to use the full http path to handle the two users on the same website. We can do this with git config --global credential.useHttpPath true