This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new c0cb80a4 Handle empty git log
c0cb80a4 is described below
commit c0cb80a4ed7810784d607c878c7fbebc0e20b86c
Author: Sebb <[email protected]>
AuthorDate: Fri Jan 5 00:02:23 2024 +0000
Handle empty git log
---
www/status/monitors/git.rb | 1 +
1 file changed, 1 insertion(+)
diff --git a/www/status/monitors/git.rb b/www/status/monitors/git.rb
index 11e9dbe3..1055f875 100644
--- a/www/status/monitors/git.rb
+++ b/www/status/monitors/git.rb
@@ -133,6 +133,7 @@ def Monitor.git(previous_status)
end
end
+ status[:empty] = {level: success, data: update} if status.empty? # no
entries found in the log
{data: status}
end