diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-05-26 13:17:24 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-05-26 13:17:24 -0700 |
commit | cca92531e3f836733d246c9696ce6a7059ae10ad (patch) | |
tree | 51abf31f65f48366e81216795c5ddc69b7301262 | |
parent | Merge branch 'js/windows-dotgit' into maint (diff) | |
parent | rebase--interactive: avoid empty list in shell for-loop (diff) | |
download | tgif-cca92531e3f836733d246c9696ce6a7059ae10ad.tar.xz |
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
-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 4cde685b43..655ebaa471 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 |