From: Junio C Hamano Date: Wed, 22 Oct 2008 19:10:33 GMT Subject: Re: [PATCH] rebase-i-p: delay saving current-commit to REWRITTEN if squashing Message-ID: <7v4p34v42e.fsf@gitster.siamese.dyndns.org> In-Reply-To: <20081022125149.GA17092@coredump.intra.peff.net> Jeff King writes: > On Wed, Oct 15, 2008 at 02:44:36AM -0500, Stephen Haberman wrote: > >> + if [ "$fast_forward" == "t" ] > > This one even fails on my Linux box. :) "==" is a bash-ism. Thanks. -- >8 -- Subject: [PATCH] git-rebase--interactive.sh: comparision with == is bashism Signed-off-by: Junio C Hamano --- git-rebase--interactive.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh index a563dea..0cae3be 100755 --- a/git-rebase--interactive.sh +++ b/git-rebase--interactive.sh @@ -170,7 +170,7 @@ pick_one_preserving_merges () { if test -f "$DOTEST"/current-commit then - if [ "$fast_forward" == "t" ] + if test "$fast_forward" = t then cat "$DOTEST"/current-commit | while read current_commit do -- 1.6.0.3.723.g757e