From d8e6b3b9d422958c2a9429648bd76da8833d8a92 Mon Sep 17 00:00:00 2001 From: ueryooo Date: Sat, 6 Dec 2025 18:31:01 +0900 Subject: [PATCH] fix: silence branch track output in auto mode Changes:\n- redirect git branch --track stdout/stderr to /dev/null when auto-creating a local tracking branch\n- prevent WORKTREE_PATH pollution that broke postCreate hooks\n\nImpact:\n- only affects track_mode=auto with remote-only branches --- lib/core.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core.sh b/lib/core.sh index 1f9a6e9..92ce408 100644 --- a/lib/core.sh +++ b/lib/core.sh @@ -375,7 +375,7 @@ create_worktree() { log_step "Branch '$branch_name' exists on remote" # Create tracking branch first for explicit upstream configuration - if git branch --track "$branch_name" "origin/$branch_name" 2>/dev/null; then + if git branch --track "$branch_name" "origin/$branch_name" >/dev/null 2>&1; then log_info "Created local branch tracking origin/$branch_name" fi