vito/resources/views/ssh/git/fetch-origin.blade.php
Dimitar Yanakiev e52903c649
fix: ensure newly created branches are available for switching (#511)
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.
2025-02-28 19:38:38 +01:00

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