diff options
author | Chris Johnsen <chris_johnsen@pobox.com> | 2010-09-17 21:42:51 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-09-17 21:58:08 (GMT) |
commit | 14d872987a270f383e20dc183f4a960cca0f0f36 (patch) | |
tree | d549ab51029bb2e91187dcdf706aa7f0b9fa1fde /.gitignore | |
parent | 84d694027fbecfc61683aa584725491bf614b5e1 (diff) | |
download | git-14d872987a270f383e20dc183f4a960cca0f0f36.zip git-14d872987a270f383e20dc183f4a960cca0f0f36.tar.gz git-14d872987a270f383e20dc183f4a960cca0f0f36.tar.bz2 |
git-rebase--interactive.sh: replace cut with ${v%% *}
Some versions of cut do not cope well with lines that do not end in
an LF. In this case, we can completely avoid cut by using the
${var%% *} parameter expansion (suggested by Brandon Casey).
I found this problem when t3404's "avoid unnecessary reset" failed
due to the "rebase -i" not avoiding updating the tested timestamp.
On a Mac OS X 10.4.11 system:
% printf '%s' 'foo bar' | /usr/bin/cut -d ' ' -f 1
cut: stdin: Illegal byte sequence
Signed-off-by: Chris Johnsen <chris_johnsen@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions