7 lines
198 B
Bash
Executable File
7 lines
198 B
Bash
Executable File
REPO_PATH=$1
|
|
|
|
git -C $REPO_PATH fetch --tags
|
|
LAST_HASH=`git -C $REPO_PATH rev-list --tags --max-count=1`
|
|
LAST_TAG=`git -C $REPO_PATH describe --tags $LAST_HASH`
|
|
git -C $REPO_PATH checkout $LAST_TAG
|