lib/commands/commit.rb in dev-2.0.132 vs lib/commands/commit.rb in dev-2.0.133

- old
+ new

@@ -18,16 +18,22 @@ message="" message=IO.read('commit.message').strip if File.exists?('commit.message') if(!File.exists?('commit.message') || message.length==0) if(defined?(REQUIRE_COMMIT_MESSAGE)) puts "commit.message required to perform commit" + Command.reset_commit_message + raise "commit.message required to perform commit" else add 'svn commit -m"commit all"' end else add 'svn commit --file commit.message' - add "<%File.open('commit.message','w'){|f|f.write('')}%>" + add "<%Command.reset_commit_message%>" #add "<%FileUtils.rm('commit.message')%>" if File.exists?('commit.message') end end + end + + def self.reset_commit_message + File.open('commit.message','w'){|f|f.write('')} end end \ No newline at end of file