]> git.ipfire.org Git - thirdparty/git.git/commit
t7501: test the right kind of breakage
authorJunio C Hamano <gitster@pobox.com>
Fri, 30 Mar 2012 18:04:08 +0000 (11:04 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 30 Mar 2012 18:07:43 +0000 (11:07 -0700)
commitc65dc351f0ae184f69cbc0b6555ff19aacb70e01
tree7c4b39cd5f460aedf8bc88e8cdb8061c8aa78e7f
parent828ea97de486c1693d6e4f2c7347acb50235a85d
t7501: test the right kind of breakage

These tests try to run "git commit" with various "forbidden" combinations
of options and expect the command to fail, but they do so without having
any change added to the index.  We wouldn't be able to catch breakages
that would allow these combinations by mistake with them because the
command will fail with "nothing to commit" anyway.

Make sure we have something added to the index before running the command.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7501-commit.sh