fix(ssh): brace refspec variables for zsh login shells (#3383)

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: Carlos Florencio <carlosmflorencio@gmail.com>
This commit is contained in:
Jonathan Marbutt
2026-09-06 05:34:56 -05:00
committed by GitHub
parent 2a29104412
commit f199f07693
6 changed files with 229 additions and 13 deletions
@@ -298,7 +298,7 @@ if [ -n "$repository_url" ]; then
echo 'kandev: target repository has no base branch' >&2
exit 1
fi
if ! git -C "$workspace" fetch --no-tags origin "+refs/heads/$repository_branch:refs/remotes/origin/$repository_branch" >/dev/null 2>&1; then
if ! git -C "$workspace" fetch --no-tags origin "+refs/heads/${repository_branch}:refs/remotes/origin/${repository_branch}" >/dev/null 2>&1; then
echo 'kandev: target base branch is unavailable' >&2
exit 1
fi