Shallow clones

This commit is contained in:
Simon Sapin 2018-09-16 18:14:22 +02:00
parent 12442d43ee
commit 7f3b5c86d1
3 changed files with 3 additions and 3 deletions

View file

@ -122,7 +122,7 @@ class DecisionTask:
env["GITHUB_EVENT_CLONE_URL"] = clone_url
command = """
git clone $GITHUB_EVENT_CLONE_URL repo
git clone --depth 1 $GITHUB_EVENT_CLONE_URL repo
cd repo
git checkout $GITHUB_EVENT_COMMIT_SHA
""" + command