reset test: modernize style
commit95728f74b100a4feabb5c70c0e6d8bed9dc29451
authorJonathan Nieder <jrnieder@gmail.com>
Sat, 24 Aug 2013 20:34:14 +0000 (24 13:34 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 25 Aug 2013 06:58:44 +0000 (24 23:58 -0700)
tree24f7307bbc4f570c6443f98f2b00d6841b580a50
parentc742f870ce29c145db57d7bc922bc0a4850a32a6
reset test: modernize style

Avoid command substitution and pipes to ensure that the exit status
from each git command is tested (and in particular that any segfaults
are caught).

Maintain the test setup (no commits, one file named "a", another named
"b") even after the last test, to make it easier to rearrange tests or
add new tests after the last in the future.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7106-reset-unborn-branch.sh