We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fd8630 commit 83333acCopy full SHA for 83333ac
tools/git-checkout-latest-tag.sh
@@ -1,8 +1,11 @@
1
#!/bin/bash
2
3
+set -eo pipefail
4
+
5
# SPDX-FileCopyrightText: 2014 MicroPython & CircuitPython contributors (https://github.com/adafruit/circuitpython/graphs/contributors)
6
#
7
# SPDX-License-Identifier: MIT
8
9
git fetch --tags
-git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
10
+latest_tag="$(git describe --tags `git rev-list --tags --max-count=1`)"
11
+git checkout $latest_tag
0 commit comments