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 15, 2021
1 parent 2b924f5 commit ebf445c
Showing 1 changed file with 3 additions and 3 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

0 comments on commit ebf445c

Please sign in to comment.