- 'Check no part of the branch was created' \
- 'test "`find .git -name foo | tee /dev/stderr`" = ".git/refs/bases/foo" &&
- ( grep foo .git/HEAD; test $? = 1 )
+ 'Check that no part of the branch was created' '
+ test "$(find .git -name foo2 | tee /dev/stderr \
+ | grep -v ^\\.git/refs/heads/foo2$ \
+ | grep -v ^\\.git/logs/refs/heads/foo2$ | wc -l)" = 0 &&
+ test "$(git show-ref | grep foo2 | wc -l)" = 1 &&
+ test "$(git symbolic-ref HEAD)" = "refs/heads/master"