From: Sverre Rabbelier Date: Fri, 4 Dec 2009 17:06:58 +0000 (+0100) Subject: fast-import: test the new option command X-Git-Tag: v1.7.0-rc0~95^2~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2792f26c3e93c268732957b71c0390a1efe14d7e;p=git.git fast-import: test the new option command Test the quiet option and verify that the commandline options override it. Also make sure that an unknown option command is rejected and that non-git options are ignored. Lastly, show that unknown options are rejected when parsed on the commandline. Signed-off-by: Sverre Rabbelier Signed-off-by: Junio C Hamano --- diff --git a/t/t9300-fast-import.sh b/t/t9300-fast-import.sh index b2c521f55..74dff1183 100755 --- a/t/t9300-fast-import.sh +++ b/t/t9300-fast-import.sh @@ -1255,7 +1255,7 @@ test_expect_success \ 'git cat-file blob refs/notes/foobar:$commit3 >actual && test_cmp expect actual' ### -### series R (feature) +### series R (feature and option) ### cat >input <input << EOF +option git quiet +blob +data 3 +hi + +EOF + +touch empty + +test_expect_success 'R: quiet option results in no stats being output' ' + cat input | git fast-import 2> output && + test_cmp empty output +' + +cat >input <input <