tests: add missing &&, batch 2
Same rules as before: this patch only adds " &&" to the end of some lines in the test suite. Intended to be applied on top of or squashed with the last batch if they look okay. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
a48fcd8369
commit
2dec68cf8f
@ -627,16 +627,16 @@ test_expect_success '--show-notes=ref accumulates' '
|
||||
|
||||
test_expect_success 'Allow notes on non-commits (trees, blobs, tags)' '
|
||||
git config core.notesRef refs/notes/other &&
|
||||
echo "Note on a tree" > expect
|
||||
echo "Note on a tree" > expect &&
|
||||
git notes add -m "Note on a tree" HEAD: &&
|
||||
git notes show HEAD: > actual &&
|
||||
test_cmp expect actual &&
|
||||
echo "Note on a blob" > expect
|
||||
echo "Note on a blob" > expect &&
|
||||
filename=$(git ls-tree --name-only HEAD | head -n1) &&
|
||||
git notes add -m "Note on a blob" HEAD:$filename &&
|
||||
git notes show HEAD:$filename > actual &&
|
||||
test_cmp expect actual &&
|
||||
echo "Note on a tag" > expect
|
||||
echo "Note on a tag" > expect &&
|
||||
git tag -a -m "This is an annotated tag" foobar HEAD^ &&
|
||||
git notes add -m "Note on a tag" foobar &&
|
||||
git notes show foobar > actual &&
|
||||
|
Reference in New Issue
Block a user