Skip to content
Snippets Groups Projects
Commit 1bd87980 authored by Martin Lowe's avatar Martin Lowe :flag_ca:
Browse files

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

parent aec721c2
No related branches found
No related tags found
1 merge request!196Fix issue where 0'd commit sha isn't matching properly
Pipeline #47833 passed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment