-C does not work for the scenario in the DSC Community repos (we have this issue over all repos in the org that we are enable this for). This DID work before. So something has change somewhere.
NOTE: This example below is from a branch, not a PR. So the error occurs for branch commits too. Testing on a fork of xFailOverCluster repo.
-C is the same as the script already does. At line 790 it does
Which when the block that is mentioned above it hits which is skipped since
commit was set at line 790.
elif [ "$commit" = "" ];
Running the bash script with debug messages (a copy with added
say lines) I see that both returns the same commit at the end. First run is without
-C, and the second run is with
==> END merge commit -> actual commit. COMMIT: 616ceb491c568b110b5b9f78af9f33fa61c734d3
And from the API the source version is