Skip to content

Commit

Permalink
Using upgrade branch
Browse files Browse the repository at this point in the history
  • Loading branch information
alecslupu committed Oct 19, 2021
1 parent d631326 commit 597c4e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions decidim-generators/lib/decidim/generators/app_generator.rb
Expand Up @@ -228,7 +228,7 @@ def gem_modifier
@gem_modifier ||= if options[:path]
"path: \"#{options[:path]}\""
elsif branch.present?
"git: \"https://github.com/decidim/decidim.git\", branch: \"#{branch}\""
"git: \"https://github.com/tremend-cofe/decidim.git\", branch: \"#{branch}\""
else
"\"#{Decidim::Generators.version}\""
end
Expand All @@ -237,7 +237,7 @@ def gem_modifier
def branch
return if options[:path]

@branch ||= options[:edge] ? "develop" : options[:branch].presence
@branch ||= options[:edge] ? "upgrade/rails-6.1" : options[:branch].presence
end

def app_name
Expand All @@ -262,7 +262,7 @@ def target_gemfile
root = if options[:path]
expanded_path
elsif branch.present?
"https://raw.githubusercontent.com/decidim/decidim/#{branch}/decidim-generators"
"https://raw.githubusercontent.com/tremend-cofe/decidim/#{branch}/decidim-generators"
else
root_path
end
Expand Down
2 changes: 1 addition & 1 deletion decidim-generators/spec/generators_spec.rb
Expand Up @@ -109,7 +109,7 @@ module Decidim
end

context "with --branch flag" do
let(:default_branch) { "develop" }
let(:default_branch) { "upgrade/rails-6.1" }
let(:command) { "decidim --branch #{default_branch} #{test_app}" }

it_behaves_like "a new production application"
Expand Down

0 comments on commit 597c4e6

Please sign in to comment.