From: Jonathan Nieder Date: Fri, 24 Sep 2010 07:11:56 GMT Subject: [PATCH 05/24] t9300 (fast-import): check exit status from command substitutions Message-ID: <20100924071156.GF4666@burratino> In-Reply-To: <20100924065900.GA4666@burratino> If "git rev-parse" starts to crash or misbehave, we want to notice. Cc: Shawn O. Pearce Signed-off-by: Jonathan Nieder --- t/t9300-fast-import.sh | 34 +++++++++++++++++++++------------- 1 files changed, 21 insertions(+), 13 deletions(-) diff --git a/t/t9300-fast-import.sh b/t/t9300-fast-import.sh index 47339a3..c113ddf 100755 --- a/t/t9300-fast-import.sh +++ b/t/t9300-fast-import.sh @@ -127,24 +127,32 @@ test_expect_success \ 'A: verify file4' \ 'git cat-file blob master:file4 >actual && test_cmp expect actual' -cat >expect <expect <<-EOF && + object $master + type commit + tag series-A + + An annotated tag without a tagger + EOF git cat-file tag tags/series-A >actual && test_cmp expect actual ' -cat >expect <expect +' + test_expect_success \ 'A: verify marks output' \ 'test_cmp expect marks.out' -- 1.7.2.3