From c1bc1ed7f422360680941e4e5933718c67a1d569 Mon Sep 17 00:00:00 2001
From: Andrew Newdigate <andrew@gitlab.com>
Date: Wed, 7 Nov 2018 09:53:09 +0000
Subject: [PATCH] Don't fail if /home/git/repositories already exists

---
 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0a17ac6dbb1e1..49a411b6421c8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,7 +9,7 @@ verify:
   services:
     - name: registry.gitlab.com/gitlab-org/build/cng/gitaly:latest
       # Disable the hooks so we don't have to stub the GitLab API
-      command: ["bash", "-c", "mkdir /home/git/repositories && rm -rf /srv/gitlab-shell/hooks/* && exec /scripts/process-wrapper"]
+      command: ["bash", "-c", "mkdir -p /home/git/repositories && rm -rf /srv/gitlab-shell/hooks/* && exec /scripts/process-wrapper"]
       alias: gitaly
   variables:
     GITALY_ADDRESS: "tcp://gitaly:8075"
-- 
GitLab