lib/tasks/commit.rb in dev-2.0.194 vs lib/tasks/commit.rb in dev-2.0.195
- old
+ new
@@ -13,22 +13,20 @@
message=IO.read('commit.message').strip if File.exists?('commit.message')
if(File.exists?('.git') && `git config --list`.include?('user.name='))
if(!`git status`.include?('nothing to commit') &&
!`git status`.include?('untracked files present'))
- if(message.length==0)#File.exists?('commit.message') && File.read('commit.message').gsub(/\s+/,"").length >0)
+ if(message.length==0)
if(defined?(REQUIRE_COMMIT_MESSAGE))
Commit.reset_commit_message
raise "commit.message required to perform commit"
else
add "git commit -m'all'"
end
else
- #add "git commit -a -v -m \"#{File.read('commit.message')}\""
add "git commit -a -v --file commit.message"
add "<%Commit.reset_commit_message%>"
end
- # add "<%File.open('commit.message','w'){|f|f.write('')}%>"
end
end
if(File.exists?('.svn'))
if(message.length==0)
if(defined?(REQUIRE_COMMIT_MESSAGE))
\ No newline at end of file