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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
315 B
Bash
Raw Normal View History

#!/bin/bash
2020-06-03 18:40:05 -04:00
set -eo pipefail
2020-06-03 18:40:05 -04:00
# 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