We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9bc0b3 commit 39d7123Copy full SHA for 39d7123
lib/redmine_gitolite/admin.rb
@@ -112,8 +112,11 @@ def gitolite_admin_repo_commit(message = '')
112
begin
113
@gitolite_admin.save("'#{@action} : #{message}'", :author => @gitolite_author)
114
rescue => e
115
- if !e.out.include?('nothing to commit')
+ if e.out.include?('nothing to commit') || e.out.include?('nothing added')
116
+ logger.warn { "#{@action} : nothing commited in Gitolite" }
117
+ else
118
logger.error { "#{e.message}" }
119
+ logger.error { "#{e.out}" }
120
end
121
122
0 commit comments