From db85b3a74fd1c50f007c198e4dc7265fdc1f2749 Mon Sep 17 00:00:00 2001 From: Stefan Naewe Date: Wed, 2 Nov 2011 16:07:05 +0100 Subject: [PATCH] t3200: add test case for 'branch -m' Signed-off-by: Stefan Naewe Signed-off-by: Junio C Hamano --- t/t3200-branch.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/t/t3200-branch.sh b/t/t3200-branch.sh index 2f5eada0d..bc73c2099 100755 --- a/t/t3200-branch.sh +++ b/t/t3200-branch.sh @@ -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 && -- 2.30.2