diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-05-17 14:38:35 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-05-17 14:38:35 -0700 |
commit | fd704b16f14a43f7d6688f0059cf9ddf9b1d9b2f (patch) | |
tree | 11f48d5efa3e287feb5b401cf4217e80fb75df95 /git-rebase--interactive.sh | |
parent | 6bfb7de89e32117a59cbafdb2dfeeac633121df0 (diff) | |
parent | 8e98b35f87532761f09101729715c2ec49e24ddf (diff) | |
download | git-fd704b16f14a43f7d6688f0059cf9ddf9b1d9b2f.tar.gz |
Merge branch 'jk/rebase-interative-eval-fix'
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
Diffstat (limited to 'git-rebase--interactive.sh')
-rw-r--r-- | git-rebase--interactive.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh index 9ea30756f1..1c6dfb6d56 100644 --- a/git-rebase--interactive.sh +++ b/git-rebase--interactive.sh @@ -82,6 +82,7 @@ rewritten_pending="$state_dir"/rewritten-pending cr=$(printf "\015") strategy_args=${strategy:+--strategy=$strategy} +test -n "$strategy_opts" && eval ' for strategy_opt in '"$strategy_opts"' do |