Adding condition to make sure pro and base commit aren't identical when erroring.

This commit is contained in:
mike12345567 2024-08-30 17:14:02 +01:00
parent 10dc832587
commit afe81fcf69
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ jobs:
any_commit=$(git log --no-merges $base_commit_excluding_merges...$pro_commit) any_commit=$(git log --no-merges $base_commit_excluding_merges...$pro_commit)
if [ -n "$any_commit" ]; then if [ -n "$any_commit" ] && [ "$base_commit" != "$pro_commit" ]; then
echo $any_commit echo $any_commit
echo "An error occurred: <error_message>" echo "An error occurred: <error_message>"