git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] t3200: add test case for 'branch -m'

From
Stefan Naewe <stefan.naewe@gmail.com>
Date
Nov 2, 2011, 15:07 UTC
Message-ID
<1320246425-2141-1-git-send-email-stefan.naewe@gmail.com>
In-Reply-To
<4EB153B4.6070404@atlas-elektronik.com>
Signed-off-by: Stefan Naewe <stefan.naewe@gmail.com>
---
 t/t3200-branch.sh |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/t/t3200-branch.sh b/t/t3200-branch.sh
index 2f5eada..3ce31b5 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 &&
-- 
1.7.8.rc0.1.gb345ae
Previous: Tay Ray ChuanNext: Junio C Hamano
Message 5 of 6 in “'git -m' dumps core”
  1. Stefan NäweNov 2, 2011
  2. branch -m: handle no arg properlyTay Ray Chuan, Nov 2, 2011
  3. Stefan NäweNov 2, 2011
  4. Tay Ray ChuanNov 2, 2011
  5. t3200: add test case for 'branch -m'Stefan Naewe, Nov 2, 2011
  6. Junio C HamanoNov 2, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.