Set default Codespaces path to /workspaces (#15356)

This commit is contained in:
Přemek Vysoký 2023-01-27 15:31:47 +01:00 committed by GitHub
parent 511beb79f3
commit 43d1152c04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 6 deletions

View file

@ -16,9 +16,10 @@
},
"codespaces": {
"openFiles": [
".devcontainer/vmr-source-build/README.md"
"installer/.devcontainer/vmr-source-build/README.md"
]
}
},
"onCreateCommand": "${containerWorkspaceFolder}/.devcontainer/vmr-source-build/init.sh"
"onCreateCommand": "${containerWorkspaceFolder}/installer/.devcontainer/vmr-source-build/init.sh",
"workspaceFolder": "/workspaces"
}

View file

@ -19,11 +19,13 @@ git -C "$installer_dir" fetch --all --unshallow
# We need this to figure out, which VMR branch to use
vmr_branch=$(git log --pretty=format:'%D' HEAD^ | grep 'origin/' | head -n1 | sed 's@origin/@@' | sed 's@,.*@@')
"$installer_dir/eng/vmr-sync.sh" \
--vmr "$vmr_dir" \
--tmp "$tmp_dir" \
--branch "$vmr_branch" \
pushd "$installer_dir"
"./eng/vmr-sync.sh" \
--vmr "$vmr_dir" \
--tmp "$tmp_dir" \
--branch "$vmr_branch" \
--debug
popd
# Run prep.sh
unset RepositoryName