From 0f982607c473898c388dbeeb5681fc0513e2d1ca Mon Sep 17 00:00:00 2001 From: ujihisa Date: Tue, 24 Mar 2009 01:22:39 +0900 Subject: [PATCH] fix for rails with --git/-g option --- railties/lib/rails_generator/commands.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/railties/lib/rails_generator/commands.rb b/railties/lib/rails_generator/commands.rb index 299044c..4ce495a 100644 --- a/railties/lib/rails_generator/commands.rb +++ b/railties/lib/rails_generator/commands.rb @@ -263,7 +263,7 @@ HELP # Optionally add file to subversion or git system("svn add #{destination}") if options[:svn] - system("git add -v #{relative_destination}") if options[:git] + system("git add -v #{destination}") if options[:git] end # Checks if the source and the destination file are identical. If -- 1.6.2