Verified Commit 993fc38b authored by Dave Long's avatar Dave Long
Browse files

Issue #3418207 followup by longwave, fjgarlin: Spell-checking job fails with...

Issue #3418207 followup by longwave, fjgarlin: Spell-checking job fails with "couldn't find remote ref refs/heads/11.x" when 11.x branch does not exist in fork

(cherry picked from commit e1312a3d)
parent 3b26fe76
Loading
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -411,4 +411,9 @@ default:
  variables:
    KUBERNETES_CPU_REQUEST: "2"
  script:
    - git diff $CI_MERGE_REQUEST_TARGET_BRANCH_SHA --name-only | sed "s_^_../_" | yarn --cwd=./core run -s spellcheck:core --no-must-find-files --file-list stdin
    - if [ -n "$CI_MERGE_REQUEST_TARGET_BRANCH_SHA" ]; then
        echo "HEAD is $(git rev-parse HEAD). \$CI_MERGE_REQUEST_TARGET_BRANCH_SHA is ${CI_MERGE_REQUEST_TARGET_BRANCH_SHA}";
      else
        echo "HEAD is $(git rev-parse HEAD). \$CI_MERGE_REQUEST_DIFF_BASE_SHA is ${CI_MERGE_REQUEST_DIFF_BASE_SHA}";
      fi;
    - git diff ${CI_MERGE_REQUEST_TARGET_BRANCH_SHA:-$CI_MERGE_REQUEST_DIFF_BASE_SHA} --name-only | sed "s_^_../_" | yarn --cwd=./core run -s spellcheck:core --no-must-find-files --file-list stdin