t3200: add test case for 'branch -m'
Signed-off-by: Stefan Naewe <stefan.naewe@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Stefan Naewe committed
Nov 2, 2011 at 16:07 UTC
db85b3a74fd1c50f007c198e4dc7265fdc1f2749
1 file changed
+5
t/t3200-branch.sh
+5
@@ -74,6 +74,11 @@ test_expect_success \
74
git branch -d l/m &&
75
git branch l'
76
77
+test_expect_success \
78
+ 'git branch -m dumps usage' \
79
+ 'test_expect_code 129 git branch -m 2>err &&
80
+ grep "[Uu]sage: git branch" err'
81
+
82
test_expect_success \
83
'git branch -m m m/m should work' \
84
'git branch -l m &&