doc: drop the git depth from the hugo theme

We need a specific SHA so let's not risk that one being outside that
depth that we clone to.
This commit is contained in:
Peter Hutterer 2023-11-08 16:03:55 +10:00
parent 05d79f6e58
commit 57e7cd7972

View file

@ -63,7 +63,7 @@ if [[ -e "$SITEDIR" ]]; then
echo "$SITEDIR already exists, updating"
else
hugo new site "$SITEDIR"
git clone --depth=50 https://github.com/McShelby/hugo-theme-relearn "$SITEDIR/themes/hugo-theme-relearn"
git clone https://github.com/McShelby/hugo-theme-relearn "$SITEDIR/themes/hugo-theme-relearn"
pushd "$SITEDIR/themes/hugo-theme-relearn" > /dev/null || exit 1
git reset --hard $TEMPLATE_SHA
popd > /dev/null || exit 1