Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Doesn't work when using Fish shell #47

Open
yisraeldov opened this issue Jul 25, 2013 · 0 comments
Open

Doesn't work when using Fish shell #47

yisraeldov opened this issue Jul 25, 2013 · 0 comments

Comments

@yisraeldov
Copy link

git deploy setup -r dep2
Password:
[dep2] $ cd /tmp/testr3.git && \
  git init  && \
  git config receive.denyCurrentBranch ignore
fish: Expected a command name, got token of type 'Run job in background'. Did you mean 'COMMAND; and COMMAND'? See the help section for the 'and' builtin command by typing 'help and'.
Standard input: cd /tmp/testr3.git && git init  && git config receive.denyCurrentBranch ignore

FILE: [local] hooks/post-receive.sh  ->  [dep2] /tmp/testr3.git/.git/hooks/post-receive
Password:
/usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/net-scp-1.1.2/lib/net/scp.rb:359:in `block (3 levels) in start_command': SCP did not finish successfully (1) (Net::SCP::Error)
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/net-ssh-2.6.8/lib/net/ssh/connection/channel.rb:590:in `call'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/net-ssh-2.6.8/lib/net/ssh/connection/channel.rb:590:in `do_close'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:580:in `channel_close'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:459:in `dispatch_incoming_packets'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:216:in `preprocess'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:200:in `process'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:164:in `block in loop'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:164:in `loop'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:164:in `loop'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:113:in `close'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/git-deploy-0.6.0/lib/git_deploy/ssh_methods.rb:97:in `block in ssh_connection'
/usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/net-scp-1.1.2/lib/net/scp.rb:392:in `await_response_state': scp: /tmp/testr3.git/.git/hooks/post-receive: No such file or directory (RuntimeError
)
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/net-scp-1.1.2/lib/net/scp.rb:363:in `block (3 levels) in start_command'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/net-ssh-2.6.8/lib/net/ssh/connection/channel.rb:311:in `call'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/net-ssh-2.6.8/lib/net/ssh/connection/channel.rb:311:in `process'

        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:217:in `block in preprocess'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:217:in `each'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:217:in `preprocess'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:200:in `process'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:164:in `block in loop'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:164:in `loop'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:164:in `loop'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/net-ssh-2.6.8/lib/net/ssh/connection/channel.rb:269:in `wait'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/git-deploy-0.6.0/lib/git_deploy/ssh_methods.rb:91:in `block in scp_upload'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/git-deploy-0.6.0/lib/git_deploy/ssh_methods.rb:91:in `each'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/git-deploy-0.6.0/lib/git_deploy/ssh_methods.rb:91:in `scp_upload'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/git-deploy-0.6.0/lib/git_deploy.rb:52:in `hooks'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor.rb:263:in `dispatch'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation.rb:109:in `invoke'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/git-deploy-0.6.0/lib/git_deploy.rb:44:in `setup'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor.rb:263:in `dispatch'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
        from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/gems/1.9.1/gems/git-deploy-0.6.0/bin/git-deploy:3:in `<top (required)>'
        from /usr/local/Cellar/ruby/1.9.3-p327/bin/git-deploy:23:in `load'
        from /usr/local/Cellar/ruby/1.9.3-p327/bin/git-deploy:23:in `<main>'

Looks like scping the hook failed because the git repo failed to be created.

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

No branches or pull requests

1 participant