git weirdness
Git is behaving a bit weirdly on Pycharm since today.
I created a new branch did some work there, and then went back to master. I was going to make a pull from the repository before merging my branch, but then I received this error:
After a bit of proding I was able to merge my dev branch, and after that I succesfully pushed my commits to master. Pychar even merged the pending remote commits while I was "pushing" mine, so that's alright.
But I can't pull from the repository anymore. All attempts end up with the same error message:
But git command line client works as expected (pulling from the remote when there is stuff to pull, or telling me that I'm already up-to-date if I am). But Pycharm it's not pulling anymore!
Where could I look to find out what's going on?
Thanks and regards,
Iván
I created a new branch did some work there, and then went back to master. I was going to make a pull from the repository before merging my branch, but then I received this error:
Error pulling origin: fatal: 'origin/origin/master' does not point to a commit
After a bit of proding I was able to merge my dev branch, and after that I succesfully pushed my commits to master. Pychar even merged the pending remote commits while I was "pushing" mine, so that's alright.
But I can't pull from the repository anymore. All attempts end up with the same error message:
Error pulling origin: fatal: 'origin/origin/master' does not point to a commit
But git command line client works as expected (pulling from the remote when there is stuff to pull, or telling me that I'm already up-to-date if I am). But Pycharm it's not pulling anymore!
Where could I look to find out what's going on?
Thanks and regards,
Iván
Please sign in to leave a comment.
Also please post your .git/config.
.git/refs/heads it's empty.
And .git/config has:
If my git config is wrong, shouldn't "git pull" at the command line client fails as well? PyCharm is able to push, to fetch... but fails only at pull. :(
Thanks and regards!
I.-
That really can't be so. This is the place where Git stores references to branches it works with. So please double check.
Please attach idea.log as well (Help -> Reveal Log in...)
I'm very sorry. Missed "master" inside "heads". :P
Contents of master: "5a071f997665b97a552a2238200a224b21d9add2"
Idea.log attached.
I.-
idea.log (913KB)
I see the corresponding line at the proper timestamp in the log, but no proper error seems to be generated that I can see...
idea.log (930KB)
Will fix it ASAP.
I've fired a bugreport in our bugtracker: http://youtrack.jetbrains.com/issue/IDEA-91733
There you may find possible workarounds. Since you are pulling from the default tracked branch, you may find using Update Project instead of Git -> Pull a useful advice.
Just one comment: pull used to work through https. Only today after my branch/commit/branch-back/merge/commit cycle somehow I lost access to doing it through pycharm. Or maybe it's a regression from 2.6.2? I just updated this morning...
I can always do it through your workaround, or just use the command line client. Just that it is very slighly annoying (I have my keyboard shortcuts deeply memorized...).
Thanks a lot for your help! Let's hope it get's fixed for 2.6.3 and that is gets released soon!
Regards!
Btw, Update Project is more handy than Pull, also because it can temporary store your local changes (if you have any) and restore them after update.