diff options
Diffstat (limited to 'circuitpython/tools/git-checkout-latest-tag.sh')
-rwxr-xr-x | circuitpython/tools/git-checkout-latest-tag.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/circuitpython/tools/git-checkout-latest-tag.sh b/circuitpython/tools/git-checkout-latest-tag.sh new file mode 100755 index 0000000..69fa2ce --- /dev/null +++ b/circuitpython/tools/git-checkout-latest-tag.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +# SPDX-FileCopyrightText: 2014 MicroPython & CircuitPython contributors (https://github.com/adafruit/circuitpython/graphs/contributors) +# +# SPDX-License-Identifier: MIT + +git fetch --tags +git checkout $(git describe --tags `git rev-list --tags --max-count=1`) |