mirror of
https://github.com/VSCodium/vscodium
synced 2024-08-27 13:01:38 +00:00
(experiment) don't download full repo
This commit is contained in:
parent
a7a52b02d5
commit
15260f4801
19
get_repo.sh
19
get_repo.sh
|
@ -1,15 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ -d vscode ]; then
|
# figure out latest tag by calling MS update API
|
||||||
cd vscode
|
UPDATE_INFO=$(curl https://update.code.visualstudio.com/api/update/darwin/stable/lol)
|
||||||
git fetch --all
|
export LATEST_MS_COMMIT=$(echo $UPDATE_INFO | jq '.version')
|
||||||
else
|
export LATEST_MS_TAG=$(echo $UPDATE_INFO | jq '.name')
|
||||||
git clone https://github.com/Microsoft/vscode.git
|
|
||||||
cd vscode
|
|
||||||
fi
|
|
||||||
|
|
||||||
export LATEST_MS_COMMIT=$(git rev-list --tags --max-count=1)
|
|
||||||
export LATEST_MS_TAG=$(git describe --tags ${LATEST_MS_COMMIT})
|
|
||||||
echo "Got the latest MS tag: ${LATEST_MS_TAG}"
|
echo "Got the latest MS tag: ${LATEST_MS_TAG}"
|
||||||
git checkout $LATEST_MS_TAG
|
|
||||||
cd ..
|
git clone https://github.com/Microsoft/vscode.git --branch $LATEST_MS_TAG --depth 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue