Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git Pull Not Working in ST3 on Yosemite #150

Closed
garand opened this issue Aug 4, 2014 · 63 comments
Closed

Git Pull Not Working in ST3 on Yosemite #150

garand opened this issue Aug 4, 2014 · 63 comments
Assignees
Labels

Comments

@garand
Copy link

garand commented Aug 4, 2014

Running git pull in SublimeGit in Sublime Text 3 on Yosemite throws this error:

/Applications/Xcode.app/Contents/Developer/usr/libexec/git-core/git-pull: line 11: git-sh-setup: No such file or directory

Other commands, such as git push, work as expected.

@garand garand changed the title Git Pull Not Working in ST3 on Yosemite (Beta 4) Git Pull Not Working in ST3 on Yosemite (Beta 5) Aug 12, 2014
@blysik
Copy link

blysik commented Aug 21, 2014

@rudeayelo
Copy link

Still not working on Yosemite Developer Preview 8, same error.

@garand garand changed the title Git Pull Not Working in ST3 on Yosemite (Beta 5) Git Pull Not Working in ST3 on Yosemite (Beta 8) Sep 16, 2014
@benediktvaldez
Copy link

👍 same here, same issue seems to be going on with iTerm, perhaps similar problems?

Homebrew/legacy-homebrew#29843

@rudeayelo
Copy link

@benediktvaldez I don't think so, iTerm2 is woking ok for me...

@benediktvaldez
Copy link

@rudeworks ah sorry, meant in past tense, as in the problem was fixed in iTerm 2 v2.0, same situation here, works fine in iTerm, only problem is in sublime..

This file, git-sh-setup seems to exist, so not sure what is causing the problems, possibly PATH issues?

@zzjin
Copy link

zzjin commented Sep 29, 2014

same issue here with st3 3064 mac10.10 dp8. any command under (iterm2,terminal) works fine.
but git pull in st3 fail with same error message.

@miped
Copy link
Contributor

miped commented Sep 29, 2014

Ok let's get this figured out... Since i don't have yosemite yet, I hope you'll help me. Could everyone with this issue please respond with:

  • Git version (and whether it's the "stock" git or homebrew/fink etc.)
  • Add this to SublimeGit settings: "log_level": "DEBUG" and then reproduce the error and paste the console output to a gist?

This would be very helpful for me.

@miped miped added the bug label Sep 29, 2014
@benediktvaldez
Copy link

git version 2.0.1 via homebrew
console output

@rudeayelo
Copy link

git version 2.1.0 also via Homebrew

Are the logs supposed to appear in Console.app? because setting "log_level": "DEBUG" at the SublimeGit user settings doesn't create any output for me...

@garand
Copy link
Author

garand commented Sep 30, 2014

git version 2.1.0 - Homebrew

[2014-09-30 10:55:20,363 - INFO     - SublimeGit.helpers] get_dirs_from_window_folders(window=3): {'/Users/garand/Projects/lift'}
[2014-09-30 10:55:20,365 - INFO     - SublimeGit.helpers] get_dirs_from_window_views(window=3): set()
[2014-09-30 10:55:20,365 - INFO     - SublimeGit.helpers] get_dirs(window=3): {'/Users/garand/Projects/lift'}
[2014-09-30 10:55:20,366 - INFO     - SublimeGit.helpers] get_dirs_prioritized(window=3): ['/Users/garand/Projects/lift']
[2014-09-30 10:55:20,366 - INFO     - SublimeGit.helpers] all_dirs(directory=/): ['/Users/garand/Projects/lift', '/Users/garand/Projects', '/Users/garand', '/Users', '/']
[2014-09-30 10:55:20,366 - INFO     - SublimeGit.helpers] get_repo_from_window(window=3, silent=False): /Users/garand/Projects/lift (only repo)
[2014-09-30 10:55:20,367 - DEBUG    - SublimeGit.cmd] cmd: ['git', '--no-pager', '-c', 'color.diff=false', '-c', 'color.status=false', '-c', 'color.branch=false', '-c', 'status.displayCommentPrefix=true', '-c', 'core.commentchar=#', 'symbolic-ref', '-q', 'HEAD']
[2014-09-30 10:55:20,376 - DEBUG    - SublimeGit.cmd] out: (0) [b'refs/heads/master\n']
[2014-09-30 10:55:20,377 - DEBUG    - SublimeGit.cmd] cmd: ['git', '--no-pager', '-c', 'color.diff=false', '-c', 'color.status=false', '-c', 'color.branch=false', '-c', 'status.displayCommentPrefix=true', '-c', 'core.commentchar=#', 'remote', '-v']
[2014-09-30 10:55:20,385 - DEBUG    - SublimeGit.cmd] out: (0) [b'origin\tgit@github.com:LiftUX/liftux-dev-server.git (fetch)\norigin\tgit@github.com:LiftUX/liftux-dev-s']
[2014-09-30 10:55:20,386 - DEBUG    - SublimeGit.cmd] cmd: ['git', '--no-pager', '-c', 'color.diff=false', '-c', 'color.status=false', '-c', 'color.branch=false', '-c', 'status.displayCommentPrefix=true', '-c', 'core.commentchar=#', 'config', 'branch.master.remote']
[2014-09-30 10:55:20,393 - DEBUG    - SublimeGit.cmd] out: (0) [b'origin\n']
[2014-09-30 10:55:20,395 - DEBUG    - SublimeGit.cmd] cmd: ['git', '--no-pager', '-c', 'color.diff=false', '-c', 'color.status=false', '-c', 'color.branch=false', '-c', 'status.displayCommentPrefix=true', '-c', 'core.commentchar=#', 'config', 'branch.master.merge']
[2014-09-30 10:55:20,402 - DEBUG    - SublimeGit.cmd] out: (0) [b'refs/heads/master\n']
[2014-09-30 10:55:20,403 - DEBUG    - SublimeGit.cmd] async-cmd: ['git', '--no-pager', '-c', 'color.diff=false', '-c', 'color.status=false', '-c', 'color.branch=false', '-c', 'status.displayCommentPrefix=true', '-c', 'core.commentchar=#', 'pull', '-v']
[2014-09-30 10:55:20,415 - DEBUG    - SublimeGit.cmd] async-out: b'/Library/Developer/CommandLineTools/usr/libexec/git-core/git-pull: line 11: git-sh-setup: No such file or directory'
[2014-09-30 10:55:20,415 - DEBUG    - SublimeGit.cmd] async-exit: 1

@jbrooksuk
Copy link

I'm experiencing this issue too. I'm able to run git pull absolutely fine from the Terminal, but from Sublime, I get the same error as above:

/Applications/Xcode.app/Contents/Developer/usr/libexec/git-core/git-pull: line 11: git-sh-setup: No such file or directory

@samuelg0rd0n
Copy link

Same issue here. Yosemite, ST3 and Git 1.9.3.

@jbrooksuk
Copy link

This happens on the Yosemite GM by the way.

@garand garand changed the title Git Pull Not Working in ST3 on Yosemite (Beta 8) Git Pull Not Working in ST3 on Yosemite (GM) Oct 3, 2014
@bartdorsey
Copy link

This sublime text bug might lead you to the right solution.

sublimehq/sublime_text#388

It seems it depends on wether or not you call os.popen vs subprocess.Popen.

os.popen ends up with a minimal path set.

@garand garand changed the title Git Pull Not Working in ST3 on Yosemite (GM) Git Pull Not Working in ST3 on Yosemite Oct 9, 2014
@miped
Copy link
Contributor

miped commented Oct 9, 2014

SublimeGit actually uses subprocess.Popen exclusively (os.popen is too limited, and generally not recommended)

@bartdorsey
Copy link

Any progress on this? I'm still getting the error on sublime text 2 and sublime text 3 in the released version of yosemite.

@Tohsig
Copy link

Tohsig commented Oct 17, 2014

Nothing new to add; just echoing that I'm seeing the same error.

  • ST3 3065
  • Git 1.9.3
  • Yosemite public relase

@mhenrixon
Copy link

Still an error please fix.

@oleksandr-diudiun
Copy link

Same problem. Yosemite, ST3 and Git 1.9.3. Please fix it!

@renolc
Copy link

renolc commented Oct 20, 2014

Same issue for me.

OSX 10.10 Yosemite
ST3 Stable Channel Build 3065
Git 2.1.0

@ZherebcovSergey
Copy link

Same problem. Yosemite, ST3 and Git 1.9.3. Please fix it!

1 similar comment
@EvanKork
Copy link

Same problem. Yosemite, ST3 and Git 1.9.3. Please fix it!

@jbrooksuk
Copy link

Yep, I think it's safe to say that there is a problem. Now we wait for the fix.

@Suhov-Igor
Copy link

Same problem. Yosemite, ST3 and Git 2.0.0. Please fix it!

@mads-ms
Copy link

mads-ms commented Oct 20, 2014

Same problem. Yosemite, ST3 and Git 2.0.0. Please fix it :-)

@huixisheng
Copy link

Same problem. Yosemite, ST3 and Git 1.9.3. Please fix it! Thank you.

@notyes
Copy link

notyes commented Nov 10, 2014

Same problem in process pull on Yosemite, ST3 and Git 1.9.3. Please fix it! Thank you.

@garand
Copy link
Author

garand commented Nov 10, 2014

@MichaelPedersen Feel free to lock this thread again. 😄

@oleksandr-diudiun
Copy link

@garand ))))))))))))))))

@wagerfield
Copy link

Is there an official solution for this yet? This issue has been open for a while now.

@garand
Copy link
Author

garand commented Nov 10, 2014

Guys, I'm sure he's working on it. The +1's aren't helpful.

@Tohsig
Copy link

Tohsig commented Nov 10, 2014

Leaving this for the people who keep hitting this thread without reading it ;)

Comment links:

@SublimeGit SublimeGit locked and limited conversation to collaborators Nov 10, 2014
bcomnes added a commit to bcomnes/sublime-text-git that referenced this issue Nov 19, 2014
This adds the `env=os.environ` option to the `subprocess.Popen` call.  It provides a decent work around for the upstream PATH problems in OS X 10.10.  

Work around for kemayo#368

See SublimeText/LaTeXTools#401 (comment) for details on how this fix works.
Same issue here: SublimeGit/SublimeGit#150
@miped
Copy link
Contributor

miped commented Feb 2, 2015

I've just released v1.0.33, which tries to address this issue. Please let me know if it's working.

@SublimeGit SublimeGit unlocked this conversation Feb 2, 2015
@garand
Copy link
Author

garand commented Feb 2, 2015

Works here. 👌

@renolc
Copy link

renolc commented Feb 2, 2015

Pulling and stashes now work for me, with no further alternations having to be made. 👍

@skotzko
Copy link

skotzko commented Feb 2, 2015

Working for me also. Nice job! 👍

@rudeayelo
Copy link

Fixed here too! 👍

@oleksandr-diudiun
Copy link

Yes, nice long-long job! :)

@jbrooksuk
Copy link

Working here too.

@morinap
Copy link

morinap commented Feb 3, 2015

👍

@bobbyrenwick
Copy link

Working 👍

@miped
Copy link
Contributor

miped commented Feb 8, 2015

Closing this, since it seems to be working for everyone.

@miped miped closed this as completed Feb 8, 2015
@protej
Copy link

protej commented Feb 10, 2015

No, unfortunately not for me:
/Library/Developer/CommandLineTools/usr/libexec/git-core/git-pull: line 11: git-sh-setup: No such file or directory
Yosemite 10.10.2 (14C109) + ST3 + SublimeGit 1.0.34

@garand
Copy link
Author

garand commented Feb 10, 2015

@protej Did you restart Sublime/your computer? I had to do that on one of my machines.

@protej
Copy link

protej commented Feb 10, 2015

ouch.. Yes, now I did, and it works! Thanks!

@yetithefoot
Copy link

What works for me!
I specified git_force_path option in user's SublimeGit.sublime-settings file.

It looks like that:

{
"git_force_path": ["/Library/Developer/CommandLineTools/usr/libexec/git-core/:/usr/bin:/bin"]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests