Skip to content

Commit 5957496

Browse files
committed
Add main branch flag to repository clone command in installation scripts
- make sure it clones main branch
1 parent 63b6294 commit 5957496

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎install.ps1‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ $extractedDir = Join-Path $tmpDir "source"
174174

175175
$spinner = Start-Spinner "Cloning repository..."
176176
$ErrorActionPreference = "Continue"
177-
git clone -c core.longpaths=true --quiet https://github.com/robertpiosik/CodeWebChat.git $extractedDir *>$null
177+
git clone -b main -c core.longpaths=true --quiet https://github.com/robertpiosik/CodeWebChat.git $extractedDir *>$null
178178
$cmdSuccess = ($LASTEXITCODE -eq 0)
179179
$ErrorActionPreference = "Stop"
180180
Stop-Spinner $spinner $cmdSuccess

‎install.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ echo ""
159159
printf " Cloning repository..."
160160
start_spinner &
161161
SPINNER_PID=$!
162-
if ! git clone -c core.longpaths=true --quiet https://github.com/robertpiosik/CodeWebChat.git "$TMP_DIR/source" > /dev/null 2>&1; then
162+
if ! git clone -b main -c core.longpaths=true --quiet https://github.com/robertpiosik/CodeWebChat.git "$TMP_DIR/source" > /dev/null 2>&1; then
163163
stop_spinner $SPINNER_PID 1
164164
exit 1
165165
fi

0 commit comments

Comments
 (0)