aboutsummaryrefslogtreecommitdiff
path: root/circuitpython/tools/git-checkout-latest-tag.sh
diff options
context:
space:
mode:
Diffstat (limited to 'circuitpython/tools/git-checkout-latest-tag.sh')
-rwxr-xr-xcircuitpython/tools/git-checkout-latest-tag.sh8
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`)