Skip to content

Commit 0884a5c

Browse files
author
root
committed
Most of the time the file is not modified (config has not changed) so there's nothing to commit...
1 parent dde88a3 commit 0884a5c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: lib/redmine_gitolite/admin.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ def gitolite_admin_repo_commit(message = '')
112112
begin
113113
@gitolite_admin.save("'#{@action} : #{message}'", :author => @gitolite_author)
114114
rescue => e
115-
logger.error { "#{e.message}" }
115+
if !e.out.include?('nothing to commit')
116+
logger.error { "#{e.message}" }
117+
end
116118
end
117119
end
118120

0 commit comments

Comments
 (0)