diff --git a/tools/init b/tools/init index 656a641..f4a1f30 100755 --- a/tools/init +++ b/tools/init @@ -46,6 +46,11 @@ check_init() { fi } +checkout_latest_tag() { + tag=$(git describe --tags $(git rev-list --tags --max-count=1)) + git reset --hard "$tag" +} + init_files() { if $_no_gh; then rm -rf .github @@ -100,4 +105,6 @@ while (($#)); do esac done +checkout_latest_tag + init_files