Skip to content

Commit cca9253

Browse files
committed
Merge branch 'jk/rebase-interative-eval-fix' into maint
Portability enhancement for "rebase -i" to help platforms whose shell does not like "for i in <empty>" (which is not POSIX-kosher). * jk/rebase-interative-eval-fix: rebase--interactive: avoid empty list in shell for-loop
2 parents e29300d + 8e98b35 commit cca9253

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

git-rebase--interactive.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ rewritten_pending="$state_dir"/rewritten-pending
8282
cr=$(printf "\015")
8383

8484
strategy_args=${strategy:+--strategy=$strategy}
85+
test -n "$strategy_opts" &&
8586
eval '
8687
for strategy_opt in '"$strategy_opts"'
8788
do

0 commit comments

Comments
 (0)