get_repo.sh 301 B

1234567891011121314
  1. #!/bin/bash
  2. if [ -d vscode ]; then
  3. cd vscode
  4. git fetch --all
  5. else
  6. git clone https://github.com/Microsoft/vscode.git
  7. cd vscode
  8. fi
  9. export LATEST_MS_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
  10. echo "Got the latest MS tag: ${LATEST_MS_TAG}"
  11. git checkout $LATEST_MS_TAG
  12. cd ..