If vscode exists, fetch updates (#19)
This commit is contained in:
parent
2bf10dde0c
commit
606d3f8ff2
2 changed files with 10 additions and 3 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
vscode
|
10
get_repo.sh
10
get_repo.sh
|
@ -1,7 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
git clone https://github.com/Microsoft/vscode.git
|
||||
cd vscode
|
||||
if [ -d vscode ]; then
|
||||
cd vscode
|
||||
git fetch --all
|
||||
else
|
||||
git clone https://github.com/Microsoft/vscode.git
|
||||
cd vscode
|
||||
fi
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue