Fetching before resetting.

This commit is contained in:
Roland 2022-01-15 19:59:36 -07:00
parent e0b5966717
commit fac3a8eba8
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -56,7 +56,7 @@ npm install -g 'git+https://github.com/pirate/readability-extractor'
# Get the latest WROLPi code
git --version
git clone https://github.com/lrnselfreliance/wrolpi.git /opt/wrolpi || :
(cd /opt/wrolpi && git checkout "${BRANCH}" && git reset --hard origin/"${BRANCH}") || exit 3
(cd /opt/wrolpi && git fetch && git checkout "${BRANCH}" && git reset --hard origin/"${BRANCH}") || exit 3
# Setup the virtual environment that main.py expects
pip3 --version || (