Revert "GIT: Switches to shallow clones"

This reverts commit 601e7aa1c186f51a42c0cd9a0316518a492f3391.

Reason for revert: Causes static tests jobs to fail, more testing is required before putting this in again

Change-Id: I475727b2676d585647e4efb44e5736cf1a49b0be
diff --git a/clone.sh b/clone.sh
index 7060091..2ee3308 100755
--- a/clone.sh
+++ b/clone.sh
@@ -53,8 +53,9 @@
     fi
 
     if [ ! -f "${SHARE_FOLDER}/${REPO_NAME}.tar.gz" ]; then
-        git_clone $REPO_URL "${SHARE_FOLDER}/${REPO_NAME}" ${REPO_REFSPEC} ${SYNC_CMD}
+        git_clone $REPO_URL "${SHARE_FOLDER}/${REPO_NAME}"
         # Compress for shared area
+        git_checkout "${SHARE_FOLDER}/${REPO_NAME}" $REPO_REFSPEC $SYNC_CMD
         cd ${SHARE_FOLDER}
         if [ "${REPO_NAME}" = "${TFM_NAME}" ] || [ "${REPO_NAME}" = "${TFM_TESTS_NAME}" ]; then
             # These two need to remain as directories for now for further usage