Code

t3200: add test case for 'branch -m'
authorStefan Naewe <stefan.naewe@gmail.com>
Wed, 2 Nov 2011 15:07:05 +0000 (16:07 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Nov 2011 19:36:56 +0000 (12:36 -0700)
Signed-off-by: Stefan Naewe <stefan.naewe@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3200-branch.sh

index 2f5eada0d2801c7bc99dbbbed4d7b0ff839f25b7..bc73c2099b5069ab136a1d93aef5a8ab4a0dad1f 100755 (executable)
@@ -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 &&