mirror of
https://github.com/git/git
synced 2024-08-26 19:19:18 +00:00
subtree: t7900: add a test for the -h flag
It's a dumb test, but it's surprisingly easy to break. Signed-off-by: Luke Shumaker <lukeshu@datawire.io> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
db6952b2b2
commit
b269976979
|
@ -37,6 +37,13 @@ last_commit_subject () {
|
|||
git log --pretty=format:%s -1
|
||||
}
|
||||
|
||||
test_expect_success 'shows short help text for -h' '
|
||||
test_expect_code 129 git subtree -h >out 2>err &&
|
||||
test_must_be_empty err &&
|
||||
grep -e "^ *or: git subtree pull" out &&
|
||||
grep -e --annotate out
|
||||
'
|
||||
|
||||
#
|
||||
# Tests for 'git subtree add'
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue