Giter Club home page Giter Club logo

Comments (8)

tom025 avatar tom025 commented on September 18, 2024

Same issue here

from capistrano.

nilbus avatar nilbus commented on September 18, 2024

It was suggested that maybe it should detect the git version and act accordingly. However, it might just be simpler to just git submodule init && git submodule update, if that's equivalent like I think it would be.

The interesting thing is that git help submodule in the git 1.6.3.3 version I have says that it supports git update --init, but when when I actually do it, it acts like the syntax is bad. I can look into this more later.

from capistrano.

leehambley avatar leehambley commented on September 18, 2024

I couldn't find the mailing list discussion that @leehambley was referring to in the commit comments.

It might have been that the conversation was on IRC, regrettably I don't think that is logged anywhere.

I'd be happy to go back to #{git} submodule init && #{git} submodule update, if it's more portable. (it would appear to be)

from capistrano.

vvatikiotis avatar vvatikiotis commented on September 18, 2024

same problem with git 1.6.2.3

from capistrano.

nilbus avatar nilbus commented on September 18, 2024

After testing with --init removed, I realized that it is actually --recursive that is unsupported in earlier versions of git. That actually makes a lot more sense, since the git docs claimed to say it supported update --init in 1.6.

Git submodule update --recursive was introduced in version 1.6.5.

This would be easily worked around by adding set :git_submodules_recursive, false to the deploy.rb, except that the default is true, and set :variable, false has no effect in SCM code. I've opened pull request #103 to fix that bug.

That bug aside, to resolve this issue, we could change git_submodules_recursive to default to false, but that would likely probably break people's deploys who rely on --recursive being there by default.

Instead, we should check the git version and only use --recursive when git version >= 1.6.5. Do you guys agree with this approach? If so, I'll write the patch and submit a pull request.

from capistrano.

leehambley avatar leehambley commented on September 18, 2024

@nilbus nice work - that confirms what I had read. Thanks for #103, I'm sure we spoke about that previously.

Regarding the way forward, if there's a long-hand way to do this, which is backwards and future compatible, I vote to stay with it.

Preferably the Git submodule would be as agnostic as possible, Capistrano is already quite severely limited by the lowest common denominator (:copy) so I don't see why SCM support should be any different!

from capistrano.

nilbus avatar nilbus commented on September 18, 2024

Fixed in #105. Let me know what you think of that solution.

from capistrano.

leehambley avatar leehambley commented on September 18, 2024

(Pull request accepted, nice fix)

from capistrano.

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.