t/lib-rebase.sh: let fake_editor completely rewrite rebase scripts
commit87f2f3e7ccc1f09e973a192674986c8e0b327cab
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 12 Feb 2009 13:59:39 +0000 (12 14:59 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 7 Feb 2010 21:56:16 +0000 (7 22:56 +0100)
tree6fd433441e6f1896185160ed9d2a622cca188547
parent4fa2f709ea30292c986ed5b31c22259107033c7c
t/lib-rebase.sh: let fake_editor completely rewrite rebase scripts

In the more sophisticated rebase -i -p tests, we need to completely rewrite
the rebase scripts.  This can be achieved by setting the environment
variable REBASE_SCRIPT to a file name, like this:

cat > rebase-script << EOF
pick A
EOF

[...]

REBASE_SCRIPT=rebase-script git rebase -i -p HEAD^

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
t/lib-rebase.sh