3 # Copyright (c) 2005 Amos Waterland
6 test_description
='git branch --foo should not create bogus branch
8 This test runs git branch --help and checks that the argument is properly
9 handled. Specifically, that a bogus branch is not created.
14 'prepare an trivial repository' \
16 ../../git-update-index --add A &&
17 ../../git-commit.sh -m "Initial commit."'
20 'git branch --help should return error code' \
21 '../../git-branch.sh --help'
24 'git branch --help should not have created a bogus branch' \
25 'test -f .git/refs/heads/--help'