From 1bd8798008b84fee406d8b0833f295e5a17ea17c Mon Sep 17 00:00:00 2001
From: Martin Lowe <martin.lowe@eclipse-foundation.org>
Date: Tue, 11 Jun 2024 12:55:09 +0000
Subject: [PATCH] Fix issue where 0'd commit sha isn't matching properly

---
 src/main/rb/eca.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/rb/eca.rb b/src/main/rb/eca.rb
index d39dd296..d5207e8d 100644
--- a/src/main/rb/eca.rb
+++ b/src/main/rb/eca.rb
@@ -126,7 +126,7 @@ end
 
 ## Get all new commits for branch, relative to itself for existing branch, relative to tree for new
 diff_git_commits_raw = ''
-if (previous_head_commit =~ /\0+/) then
+if (previous_head_commit.to_s =~ /^0+$/) then
   ## This isn't perfect as its relative to fork, but should be huge improvement
   diff_git_commits_raw = `git rev-list #{new_head_commit}  --not --branches=*`
 else
-- 
GitLab