Skip to content

Commit

Permalink
t3200: add test case for 'branch -m'
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Naewe <stefan.naewe@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Stefan Naewe authored and Junio C Hamano committed Nov 2, 2011
1 parent 3706ed2 commit db85b3a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions t/t3200-branch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ test_expect_success \
git branch -d l/m &&
git branch l'

test_expect_success \
'git branch -m dumps usage' \
'test_expect_code 129 git branch -m 2>err &&
grep "[Uu]sage: git branch" err'

test_expect_success \
'git branch -m m m/m should work' \
'git branch -l m &&
Expand Down

0 comments on commit db85b3a

Please sign in to comment.