Git pull hangs my Mac

Answered

This happens sporadically. I go the the VCS menu and run Git/Pull and the git process completely hangs.

I am unable to run any shell commands in the Terminal either because the OS X Terminal app completely hangs as well.

Other apps, including PyCharm continue to work (but the Terminal, Activity Monitor, and the Git Pull itself are all completely stuck). The only way out is to hard reboot my computer. Doesn't happen every time I pull, but frequently enough that I have to hard reboot at least once a week.

Here are the log entries for today. The log almost makes it looks like the pull worked, but my computer is in a broken state.

2018-07-12 09:29:09,861 [162996835] INFO - #git4idea.commands.GitHandler - [bash-simulation] git -c core.quotepath=false checkout feature/sim_v1_0 -- 
2018-07-12 09:29:09,896 [162996870] INFO - #git4idea.commands.GitHandler - Switched to branch 'feature/sim_v1_0'
2018-07-12 09:29:09,897 [162996871] INFO - #git4idea.commands.GitHandler - M Python/Core/Config.py
2018-07-12 09:29:09,897 [162996871] INFO - #git4idea.commands.GitHandler - M Python/Core/DBWorksAll.py
2018-07-12 09:29:09,897 [162996871] INFO - #git4idea.commands.GitHandler - M Python/Core/Simulation.py
2018-07-12 09:29:09,897 [162996871] INFO - #git4idea.commands.GitHandler - M Python/Core/__init__.py
2018-07-12 09:29:09,897 [162996871] INFO - #git4idea.commands.GitHandler - M Python/DaubinHood18/Config.py
2018-07-12 09:29:09,897 [162996871] INFO - #git4idea.commands.GitHandler - M Python/GoldRush17/Config.py
2018-07-12 09:29:09,897 [162996871] INFO - #git4idea.commands.GitHandler - A Python/setup.py
2018-07-12 09:29:09,897 [162996871] INFO - #git4idea.commands.GitHandler - Your branch is up-to-date with 'origin/feature/sim_v1_0'.
2018-07-12 09:29:17,158 [163004132] INFO - #git4idea.commands.GitHandler - [bash-simulation] git -c core.quotepath=false pull --progress --no-stat -v --progress origin feature/sim_v1_0
2018-07-12 09:30:30,637 [163077611] INFO - python.packaging.PyPackageUtil - Refreshing installed packages for SDK /Users/wgreene/dev/graf/.python/bin/python
2018-07-12 09:30:30,638 [163077612] INFO - packaging.PyPackageManagerImpl - Running packaging tool: /Users/wgreene/dev/graf/.python/bin/python /Applications/PyCharm CE.app/Contents/helpers/packaging_tool.py list

Hoping someone has some additional insight. Read through the similar posts but could not find a solution. I have tried using both the native and built-in git clients. 

 

Thanks,

Will

2 comments

> I have tried using both the native and built-in git clients. 

There is no any built-in git client, it is always command-line git client in use. Please don't confuse with SSH implementation.

What git version do you use? If it is the one from xcode, please try standalone git installed via e.g. homebrew, or official dmg from the git website.

SinceTerminal stops working does not look like it is Pycharm fault. Probably git client hangs as it is executed via system shell. And I have no idea why it affects Activity monitor.

0

Thank you. Yeah, I meant the native/built-in SSH setting. I have installed git 2.18.0 from git-scm.com and changed the path to the git executable in PyCharm settings. Previously it was using /usr/bin/git (perhaps from XCode as you mentioned) which was version 2.10.1. I'll have to try it out for a while to see if the hangs stop.

0

Please sign in to leave a comment.