diff --git a/deploy/deploy-stg.sh b/deploy/deploy-stg.sh index aa1063ac..e3cef47d 100755 --- a/deploy/deploy-stg.sh +++ b/deploy/deploy-stg.sh @@ -34,7 +34,7 @@ ssh $SERVER \ cd "$STAGING_DIR" git fetch origin git checkout $BRANCH - git pull origin $BRANCH + git reset --hard origin/$BRANCH else echo "Cloning repository $REPO to $STAGING_DIR..." git clone -b $BRANCH $REPO $STAGING_DIR