vscodium/get_repo.sh

15 lines
301 B
Bash
Raw Normal View History

2018-08-13 18:24:40 +00:00
#!/bin/bash
2018-09-20 13:32:49 +00:00
if [ -d vscode ]; then
cd vscode
git fetch --all
else
git clone https://github.com/Microsoft/vscode.git
cd vscode
fi
2018-08-13 18:24:40 +00:00
export LATEST_MS_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
echo "Got the latest MS tag: ${LATEST_MS_TAG}"
git checkout $LATEST_MS_TAG
2018-09-20 13:32:49 +00:00
cd ..