We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cd81e7 commit 471e8c4Copy full SHA for 471e8c4
1 file changed
tools/init
@@ -77,6 +77,11 @@ check_env() {
77
_check_init
78
}
79
80
+checkout_latest_tag() {
81
+ tag=$(git describe --tags "$(git rev-list --tags --max-count=1)")
82
+ git reset --hard "$tag"
83
+}
84
+
85
init_files() {
86
if $_no_gh; then
87
rm -rf .github
@@ -109,6 +114,7 @@ commit() {
109
114
110
115
main() {
111
116
check_env
117
+ checkout_latest_tag
112
118
init_files
113
119
commit
120
0 commit comments