Sfoglia il codice sorgente

ci: unshallow for PR testing [skip ci]

Baptiste Augrain 1 anno fa
parent
commit
24aafd81b9
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      get_repo.sh

+ 1 - 0
get_repo.sh

@@ -11,6 +11,7 @@ fi
 if [[ -n "${PULL_REQUEST_ID}" ]]; then
 if [[ -n "${PULL_REQUEST_ID}" ]]; then
   BRANCH_NAME=$( git rev-parse --abbrev-ref HEAD )
   BRANCH_NAME=$( git rev-parse --abbrev-ref HEAD )
 
 
+  git fetch --unshallow
   git fetch origin "pull/${PULL_REQUEST_ID}/head"
   git fetch origin "pull/${PULL_REQUEST_ID}/head"
   git checkout FETCH_HEAD
   git checkout FETCH_HEAD
   git merge --no-edit "origin/${BRANCH_NAME}"
   git merge --no-edit "origin/${BRANCH_NAME}"