Giter Site home page Giter Site logo

Comments (9)

mislav avatar mislav commented on May 29, 2024

I don't understand this error. Was there more in the output?

So, to get this straight: the remote directory was created, git repo was inited in it, but the post-receive hook wasn't copied to the server?

Which version of Thor do you have installed? gem list thor

from git-deploy.

mohanzhang avatar mohanzhang commented on May 29, 2024

Here's the complete sequence:

git deploy setup -r production -s false                                              [1s] 
[production] $ chmod g+ws /home/deployer/project && \
  cd /home/deployer/project && \
  git init --shared && \
  git config --bool receive.denyNonFastForwards false && \
  git config receive.denyCurrentBranch ignore
Reinitialized existing shared Git repository in /home/deployer/project/.git/
git-deploy hooks requires at least 0 argument: "git-deploy hooks".

I have thor version 0.15.2. I thought this might have been a zsh issue, but the same thing happens on bash.

from git-deploy.

mislav avatar mislav commented on May 29, 2024

Thanks. Seems like it may be a Thor issue. Can you try uninstalling Thor and installing the previous version:

$ gem uninstall thor -axI
$ gem install thor -v '~> 0.14.6'

from git-deploy.

mohanzhang avatar mohanzhang commented on May 29, 2024

Good call. It was indeed a thor compatibility issue. I added an explicit entry in my gemfile like so

gem 'thor', '~> 0.14.6'
gem 'git-deploy'

And it worked as advertised! Thanks for the super fast responses :)

from git-deploy.

radar avatar radar commented on May 29, 2024

I'm seeing this issue in another project (Spree). Is it a known issue in Thor?

from git-deploy.

sferik avatar sferik commented on May 29, 2024

This appears to be a regression in Thor 0.15. It's possible that it was fixed by rails/thor@de6b9a4, which was released in version 0.15.3.

Can you please check whether that fixes the problem. If not, please open an issue.

/cc @wycats @josevalim

from git-deploy.

l4u avatar l4u commented on May 29, 2024

Got the same error with thor 0.15.4
It works when I install thor 0.14.6

from git-deploy.

wycats avatar wycats commented on May 29, 2024

@sferik what's the story here?

from git-deploy.

sferik avatar sferik commented on May 29, 2024

@wycats Not sure. It would be great to have a failing test case. The bug is now being tracked at rails/thor#234, so I believe this issue can be safely closed. This appears to be a bug in thor, not specific to git-deply.

from git-deploy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.