lib/tasks/commit.rb in dev-2.0.274 vs lib/tasks/commit.rb in dev-2.0.275

- old
+ new

@@ -10,10 +10,10 @@ class Commit < Array def update message="" message=IO.read('commit.message').strip if File.exists?('commit.message') - if(File.exists?('.git') && `git config --list`.include?('user.name=')) + if(File.exists?('.git') && `git config --list`.include?('user.name=') && Git.user_email.length > 0) if(!`git status`.include?('nothing to commit') && !`git status`.include?('untracked files present')) if(message.length==0) if(defined?(REQUIRE_COMMIT_MESSAGE)) Commit.reset_commit_message \ No newline at end of file