Skip to content

Commit 9ee9c4b

Browse files
committed
Allow branch names with a slash
1 parent 1208907 commit 9ee9c4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git-iterate

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ do
434434
fi
435435
fi
436436
if [ -n "$some_branch" ]; then
437-
branches=$(LANG="en" git for-each-ref refs/heads/* --format='%(refname)'|cut -c12-)
437+
branches=$(LANG="en" git for-each-ref refs/heads/** --format='%(refname)'|cut -c12-)
438438
if [ -z "$branches" ]; then
439439
cd "$OLDPWD"
440440
continue
@@ -497,7 +497,7 @@ do
497497
fi
498498
fi
499499
if [ -n "$branch_type" ]; then
500-
branches=$(LANG="en" git for-each-ref refs/heads/* --format='%(refname)'|cut -c12-)
500+
branches=$(LANG="en" git for-each-ref refs/heads/** --format='%(refname)'|cut -c12-)
501501
if [ -z "$branches" ]; then
502502
continue
503503
fi

0 commit comments

Comments
 (0)