I use SmartGit like alternative git client. And now I have next issue when try to make a pull:
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?
When did this start happening to you?
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 tru
e
It works! You are git jedi!
Thank you!!!
when I set
git config --global credential.useHttpPath true
Defold repository works good, but github doesn’t work. If I set false
then vice versa =(
I have not used Github Desktop myself but which OS are you on? What error do you get? and what credential helper are you using?
I am using Smartgit.
On Github.com I am using autorisation by SSH Key. All configured by standart github instruction : https://help.github.com/articles/connecting-to-github-with-ssh/
If I made:
git config --global credential.useHttpPath true
Smartgit asked me for a password and won’t to use my ssh key.
git config --global credential.useHttpPath false
Samrtgit works with ssh key without any problem
Maybe this can help https://gist.github.com/jexchan/2351996? Haven’t tried it myself as I don’t use SSH.
no it doesn’t helped.
But I found other simple way (I don’t kow why I didn’t use it earlier):
set global
git config --global credential.useHttpPath false
but local for defold project :
git config credential.useHttpPath true
Thank you!!!