Skip to content
Snippets Groups Projects

Fix issue where 0'd commit sha isn't matching properly

Merged Martin Lowe requested to merge malowe-main-patch-27912 into main
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -126,7 +126,7 @@ end
@@ -126,7 +126,7 @@ end
## Get all new commits for branch, relative to itself for existing branch, relative to tree for new
## Get all new commits for branch, relative to itself for existing branch, relative to tree for new
diff_git_commits_raw = ''
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
## 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=*`
diff_git_commits_raw = `git rev-list #{new_head_commit} --not --branches=*`
else
else
Loading