title: Gitlab CI: job hangs up on cloning repo
body: <p>I have two job pipeline in our CI process in Gitlab.com CI (with shared runners) and second one hangs up on <code>Checking out c5b6078f as master...</code></p>
  
  <p>First job "build" completes correctly and pushes valid image to AWS docker registry. Second jobs hangs up before even starting on checking repository.</p>
  
  <p>I have tried both git strategies "fetch" and "clone" with same result.</p>
  
  <p>job log:</p>
  
  <ul>
  <li>Running with gitlab-ci-multi-runner 1.5.2 (76fdacd)</li>
  <li>Using Docker executor with image silintl/ecs-deploy ...</li>
  <li>Pulling docker image silintl/ecs-deploy ...</li>
  <li>Running on runner-8a2f473d-project-1459347-concurrent-0 via runner-8a2f473d-machine-1472732000-783cccf8-digital-ocean-4gb...</li>
  <li>Cloning repository...</li>
  <li>Cloning into '/builds/zendoro/frontend-catalogue'...</li>
  <li>Checking out c5b6078f as master...</li>
  </ul>
  
  <p>gitlab-ci.yml:</p>
  
  <pre><code>image: ekino/dind-aws
  
  stages:
    - build
    - deploy-dev
    - deploy-prod
  
  variables:
    CONTAINER_IMAGE: XXXYYYZZZ.dkr.ecr.eu-west-1.amazonaws.com/$CI_PROJECT_NAME:$CI_BUILD_REF
    CONTAINER_TAG: XXXYYYZZZ.dkr.ecr.eu-west-1.amazonaws.com/$CI_PROJECT_NAME:$CI_BUILD_REF_NAME
  
  build:
    stage: build
    services:
      - docker:dind
    script:
      - eval $(aws ecr get-login --region eu-west-1)
      - docker build --pull -t $CONTAINER_IMAGE .
      - docker push $CONTAINER_IMAGE
      - docker tag $CONTAINER_IMAGE $CONTAINER_TAG
      - docker push $CONTAINER_TAG
  
  deployment-dev:
    stage: deploy-dev
    image: silintl/ecs-deploy
    script:
      - ecs-deploy -c default -n $CI_PROJECT_NAME -i $CONTAINER_IMAGE
    environment: Development
    dependencies:
      - build
    only:
      - master
  
  deployment-prod:
    stage: deploy-prod
    image: silintl/ecs-deploy
    script:
      - ecs-deploy -c production -n $CI_PROJECT_NAME -i $CONTAINER_IMAGE
    environment: Production
    dependencies:
      - build
    only:
      - tags
  </code></pre>
  
  <p>I have also tried another image for deployment "jakubriedl/ecs-deploy" which is basically the same but on Alpine linux and it did not hanged up but ended with <code>ERROR: Build failed: exit code 2</code></p>
  
  <p>full job log with alpine image:</p>
  
  <ul>
  <li>Running with gitlab-ci-multi-runner 1.5.2 (76fdacd)</li>
  <li>Using Docker executor with image jakubriedl/ecs-deploy ...</li>
  <li>Pulling docker image jakubriedl/ecs-deploy ...</li>
  <li>Running on runner-8a2f473d-project-1459347-concurrent-0 via runner-8a2f473d-machine-1472734703-4f8bb312-digital-ocean-4gb...</li>
  <li>Cloning repository...</li>
  <li>Cloning into '/builds/zendoro/frontend-catalogue'...</li>
  <li>Checking out 3647bc37 as master...</li>
  <li>ERROR: Build failed: exit code 2</li>
  </ul>