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

Git Integration fails with an absolute drupal_basepath #4

Open
jeffgeorge opened this issue Aug 3, 2015 · 0 comments
Open

Git Integration fails with an absolute drupal_basepath #4

jeffgeorge opened this issue Aug 3, 2015 · 0 comments
Labels

Comments

@jeffgeorge
Copy link
Member

Turns out our presently-undocumented Git Integration fails if you've configured an absolute drupal_basepath.

The code here expects it to be relative:

# Clone repos if necessary
drupal_sites.each do |name, site|
  if site.has_key?("git_url") && site.has_key?("git_dir") && !Dir.exists?( Dir.pwd + "/" + drupal_basepath + "/" + site['git_dir'] + "/.git")
    puts "No Git Clone found for \"#{name}\""
    git_cmd = "git clone #{site['git_url']} #{drupal_basepath}/#{site['git_dir']}"
    %x{ #{git_cmd} }
  end
end

So . . don't do that.

@jeffgeorge jeffgeorge added the bug label Aug 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant