From 0a79323e33909a4e19f3a6abc5acfcfbe2b29fbf Mon Sep 17 00:00:00 2001 From: Martijn Storck Date: Sat, 28 Dec 2019 18:38:23 +0100 Subject: [PATCH] Do not abort `rails new` when git binary doesn't exist Co-Authored-By: Eugene Kenny --- railties/lib/rails/generators/rails/app/app_generator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb index e60429274f..fc746b2476 100644 --- a/railties/lib/rails/generators/rails/app/app_generator.rb +++ b/railties/lib/rails/generators/rails/app/app_generator.rb @@ -68,7 +68,7 @@ module Rails def version_control if !options[:skip_git] && !options[:pretend] - run "git init", capture: options[:quiet] + run "git init", capture: options[:quiet], abort_on_failure: false end end