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

Support for commands in windows #23

Open
Krishna-teja opened this issue May 20, 2014 · 5 comments
Open

Support for commands in windows #23

Krishna-teja opened this issue May 20, 2014 · 5 comments

Comments

@Krishna-teja
Copy link

I am having issues when I install it in windows. Both git smart-pull and git smart-merge are erroring out.

Git smart-merge:


c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/git-smart-0.1.10/lib/git-smart/safe_shell.rb:4:in fork': fork() function is unimplemented on this machine (NotImplementedError) from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/git-smart-0.1.10/lib/git-smart/safe_shell.rb:4:inexecute'
from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/git-smart-0.1.10/lib/git-smart/git_repo.rb:169:in block in exec_git' from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/git-smart-0.1.10/lib/git-smart/git_repo.rb:168:inchdir'
from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/git-smart-0.1.10/lib/git-smart/git_repo.rb:168:in exec_git' from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/git-smart-0.1.10/lib/git-smart/git_repo.rb:140:ingit'
from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/git-smart-0.1.10/lib/git-smart/git_repo.rb:42:in sha' from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/git-smart-0.1.10/lib/commands/smart-merge.rb:14:inblock in <top (required)>'
from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/git-smart-0.1.10/lib/git-smart/git_smart.rb:21:in instance_exec' from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/git-smart-0.1.10/lib/git-smart/git_smart.rb:21:inblock in register'
from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/git-smart-0.1.10/lib/git-smart/git_smart.rb:6:in call' from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/git-smart-0.1.10/lib/git-smart/git_smart.rb:6:inrun'
from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/git-smart-0.1.10/bin/git-smart-merge:7:in <top (required)>' from c:/Ruby200-x64/bin/git-smart-merge:23:inload'
from c:/Ruby200-x64/bin/git-smart-merge:23:in `'

Git smart-pull:


c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/git-smart-0.1.10/lib/git-smart/safe_shel
l.rb:4:in `fork': fork() function is unimplemented on this machine (NotImplement
edError)
        from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/git-smart-0.1.10/lib/git-sm
art/safe_shell.rb:4:in `execute'
        from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/git-smart-0.1.10/lib/git-sm
art/git_repo.rb:169:in `block in exec_git'
        from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/git-smart-0.1.10/lib/git-sm
art/git_repo.rb:168:in `chdir'
        from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/git-smart-0.1.10/lib/git-sm
art/git_repo.rb:168:in `exec_git'
        from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/git-smart-0.1.10/lib/git-sm
art/git_repo.rb:140:in `git'
        from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/git-smart-0.1.10/lib/git-sm
art/git_repo.rb:160:in `config'
        from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/git-smart-0.1.10/lib/git-sm
art/git_repo.rb:47:in `tracking_remote'
        from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/git-smart-0.1.10/lib/comman
ds/smart-pull.rb:20:in `block in '
        from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/git-smart-0.1.10/lib/git-sm
art/git_smart.rb:21:in `instance_exec'
        from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/git-smart-0.1.10/lib/git-sm
art/git_smart.rb:21:in `block in register'
        from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/git-smart-0.1.10/lib/git-sm
art/git_smart.rb:6:in `call'
        from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/git-smart-0.1.10/lib/git-sm
art/git_smart.rb:6:in `run'
        from c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/git-smart-0.1.10/bin/git-sm
@octylFractal
Copy link

Yes, Windows has no fork command/function, is there a way to support Windows?

@tellezhector
Copy link

+1

@elliotblackburn
Copy link

+1 to this request, it would be really useful

@vasil-dimov
Copy link

+1

@bbartlett
Copy link

In order to get the "git-smart" commands to work under Windows, replace the safe_smart.rb file that comes with this gem (on my machine it is in C:\Ruby22\lib\ruby\gems\2.2.0\gems\git-smart-0.1.10\lib\git-smart\ ) with the version from https://github.com/envato/safe_shell/blob/master/lib/safe_shell.rb . Works fine after that.

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

No branches or pull requests

6 participants