FIX: remove pull for Discourse core (#499)
authorJeff Wong <awole20@gmail.com>
Fri, 11 Dec 2020 01:11:53 +0000 (15:11 -1000)
committerGitHub <noreply@github.com>
Fri, 11 Dec 2020 01:11:53 +0000 (17:11 -0800)
We are already shallow-fetching a few lines below. A pull with a shallow
clone can be dangerous if Discourse is using a different repository
or version, as that potentially results in more data being pulled or a
dirty merge with a different upstream.

Remove the pull and rely only on the fetch and checkout.

templates/web.template.yml

index eb377ae4ea920d93a07ddaafe24c488ad9b67fe0..28fb22d00877400050c0705671965780e72ba0b4 100644 (file)
@@ -89,7 +89,6 @@ run:
         - git reset --hard
         - git clean -f
         - git remote set-branches --add origin master
-        - git pull
         - git remote set-branches origin $version
         - git fetch --depth 1 origin $version
         - git checkout $version