Skip to content

Commit 18ac1de

Browse files
authored
fix: silence branch track output in auto mode (#33)
1 parent 15ec2e3 commit 18ac1de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ create_worktree() {
375375
log_step "Branch '$branch_name' exists on remote"
376376

377377
# Create tracking branch first for explicit upstream configuration
378-
if git branch --track "$branch_name" "origin/$branch_name" 2>/dev/null; then
378+
if git branch --track "$branch_name" "origin/$branch_name" >/dev/null 2>&1; then
379379
log_info "Created local branch tracking origin/$branch_name"
380380
fi
381381

0 commit comments

Comments
 (0)