]> git.ipfire.org Git - thirdparty/git.git/commit - git-filter-branch.sh
filter-branch: use printf instead of echo -e
authorMichele Locati <michele@locati.it>
Mon, 19 Mar 2018 15:52:59 +0000 (16:52 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 19 Mar 2018 17:59:28 +0000 (10:59 -0700)
commit206a6ae01355e4d5d0e01e6d99d960fcc907e6b3
tree82e6c4bd0185241b665395b76c88c7934b81eb3f
parent3013dff8662eae06457fe6e5348dfe2270810ab2
filter-branch: use printf instead of echo -e

In order to echo a tab character, it's better to use printf instead of
"echo -e", because it's more portable (for instance, "echo -e" doesn't work
as expected on a Mac).

This solves the "fatal: Not a valid object name" error in git-filter-branch
when using the --state-branch option.

Furthermore, let's switch from "/bin/echo" to just "echo", so that the
built-in echo command is used where available.

Signed-off-by: Michele Locati <michele@locati.it>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-filter-branch.sh