Skip to content

Commit 135163b

Browse files
fsilvaortizclaude
andcommitted
fix: remove redundant fetch from bash collision check
Avoids double fetch when collision is detected — check_existing_branches already fetches internally during auto-detect fallback. Matches the PowerShell script change from previous commit. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent a8e710e commit 135163b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎scripts/bash/create-new-feature.sh‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,8 @@ else
287287
done
288288
fi
289289

290-
# Check git branches for collision (fetch first to catch remote-only branches)
290+
# Check git branches for collision
291291
if [ "$NUMBER_IN_USE" = false ] && [ "$HAS_GIT" = true ]; then
292-
git fetch --all --prune 2>/dev/null || true
293292
branches=$(git branch -a 2>/dev/null || echo "")
294293
if [ -n "$branches" ]; then
295294
while IFS= read -r branch; do

0 commit comments

Comments
 (0)