circuitpython/tools/git-checkout-latest-tag.sh

12 lines
315 B
Bash
Executable File

#!/bin/bash
set -eo pipefail
# SPDX-FileCopyrightText: 2014 MicroPython & CircuitPython contributors (https://github.com/adafruit/circuitpython/graphs/contributors)
#
# SPDX-License-Identifier: MIT
git fetch --tags
latest_tag="$(git describe --tags `git rev-list --tags --max-count=1`)"
git checkout $latest_tag