Adding submodule branch override to Install-gui.ps1 (#13752)

* Adding submodule branch override to Install-gui.ps1

* Linting fix on Install-gui.ps1
This commit is contained in:
William Allen 2022-10-31 11:23:53 -05:00 committed by GitHub
parent 00aac17996
commit fa33bea9e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -1,4 +1,5 @@
$ErrorActionPreference = "Stop"
$SUBMODULE_BRANCH = $args[0]
if ($null -eq (Get-ChildItem env:VIRTUAL_ENV -ErrorAction SilentlyContinue))
{
@ -16,6 +17,14 @@ if ($null -eq (Get-Command node -ErrorAction SilentlyContinue))
Write-Output "Running 'git submodule update --init --recursive'."
Write-Output ""
git submodule update --init --recursive
if ( $SUBMODULE_BRANCH ) {
git fetch --all
git reset --hard $SUBMODULE_BRANCH
Write-Output ""
Write-Output "Building the GUI with branch $SUBMODULE_BRANCH"
Write-Output ""
}
Push-Location
try {