mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-22 03:02:20 +00:00
Fixed an issue where the "Change Branch" button didn't work when switching to a newly created remote branch after initially cloning the repository. Added `git fetch origin` to update branch references before switching.
8 lines
133 B
PHP
8 lines
133 B
PHP
if ! cd {{ $path }}; then
|
|
echo 'VITO_SSH_ERROR' && exit 1
|
|
fi
|
|
|
|
if ! git fetch origin; then
|
|
echo 'VITO_SSH_ERROR' && exit 1
|
|
fi
|