summaryrefslogtreecommitdiff
path: root/t/t3200-branch.sh
diff options
context:
space:
mode:
authorStefan Naewe <stefan.naewe@gmail.com>2011-11-02 15:07:05 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-11-02 19:36:56 (GMT)
commitdb85b3a74fd1c50f007c198e4dc7265fdc1f2749 (patch)
tree902c02c7f3c3c03cfa4e675fef1c59f5b3fa4991 /t/t3200-branch.sh
parent3706ed298cbb5d4052ca0793ca36d9f28b4885bc (diff)
downloadgit-db85b3a74fd1c50f007c198e4dc7265fdc1f2749.zip
git-db85b3a74fd1c50f007c198e4dc7265fdc1f2749.tar.gz
git-db85b3a74fd1c50f007c198e4dc7265fdc1f2749.tar.bz2
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>
Diffstat (limited to 't/t3200-branch.sh')
-rwxr-xr-xt/t3200-branch.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t3200-branch.sh b/t/t3200-branch.sh
index 2f5eada..bc73c20 100755
--- a/t/t3200-branch.sh
+++ b/t/t3200-branch.sh
@@ -75,6 +75,11 @@ test_expect_success \
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 &&
git branch -m m m/m &&