lib/tasks/commit.rb in dev-2.0.289 vs lib/tasks/commit.rb in dev-2.0.290
- old
+ new
@@ -12,16 +12,17 @@
message=""
message=IO.read('commit.message').strip if File.exists?('commit.message')
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'))
+ !`git status`.include?('untracked files present') &&
+ !`git status`.include?('no changes add to commit'))
if(message.length==0)
if(defined?(REQUIRE_COMMIT_MESSAGE))
Commit.reset_commit_message
raise "commit.message required to perform commit"
else
- add_quiet "git commit -m'all'"
+ add_passive "git commit -m'all'"
end
else
add_quiet "git commit -a -v --file commit.message"
add_quiet "<%Commit.reset_commit_message%>"
end
\ No newline at end of file