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

set :git_submodules_recursive, false is broken #83

Closed
bryckbost opened this issue Aug 17, 2011 · 2 comments
Closed

set :git_submodules_recursive, false is broken #83

bryckbost opened this issue Aug 17, 2011 · 2 comments

Comments

@bryckbost
Copy link

The way :git_submodules_recursive is retrieved, we can't get it to disable with false.

The issue is with how SCM::Base implements variable:

def variable(name, default = nil)
  if local? && configuration.exists?("local_#{name}".to_sym)
    return configuration["local_#{name}".to_sym] || default
  else
    configuration[name] || default
  end
end

Anything explicitly set to false will cause the OR conditional to return the default, which in the case of :git_submodules_recursive is nil.

We're happy to work up a patch, but want to get some feedback if there's a preferred way to approach this.

@bryckbost
Copy link
Author

Just added a quick failing test in the collective idea fork.

@nilbus
Copy link
Contributor

nilbus commented Sep 23, 2011

Fixed in #103

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

3 participants