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 249a37cd Allow for empty file
249a37cd is described below

commit 249a37cdf55d7de1346316884b4f55b138ed3bbb
Author: Sebb <[email protected]>
AuthorDate: Wed Jan 10 16:38:03 2024 +0000

    Allow for empty file
---
 www/status/monitors/git.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/status/monitors/git.rb b/www/status/monitors/git.rb
index 9dced217..47120893 100644
--- a/www/status/monitors/git.rb
+++ b/www/status/monitors/git.rb
@@ -33,7 +33,7 @@ def Monitor.git(previous_status)
     end
   end
 
-  updates = fdata.split(%r{\n(?:/\w+)*/srv/git/})[1..-1]
+  updates = fdata.split(%r{\n(?:/\w+)*/srv/git/})[1..-1] || [] # allow for 
empty file
 
   status = {}
   seen_level = {}

Reply via email to