From fa33bea9e736b2d74545b776a5ed0bc093f5629c Mon Sep 17 00:00:00 2001 From: William Allen Date: Mon, 31 Oct 2022 11:23:53 -0500 Subject: [PATCH] Adding submodule branch override to Install-gui.ps1 (#13752) * Adding submodule branch override to Install-gui.ps1 * Linting fix on Install-gui.ps1 --- Install-gui.ps1 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Install-gui.ps1 b/Install-gui.ps1 index 86ecab8b62..502797a2cc 100644 --- a/Install-gui.ps1 +++ b/Install-gui.ps1 @@ -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 {