reset before pulling to avoid issues

This commit is contained in:
Adam Cooke
2017-05-05 19:55:20 +01:00
parent 88170af3cb
commit 1758dc466a
+1 -1
View File
@@ -6,8 +6,8 @@ if [ ! -d /tmp/postal-api/.git ];
then
git clone git@github.com:atech/postal-api /tmp/postal-api
else
git -C /tmp/postal-api pull origin master
git -C /tmp/postal-api reset --hard HEAD
git -C /tmp/postal-api pull origin master
fi
rm -Rf /tmp/postal-api/*