Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
modernize t9300: wrap lines after &&
author
Johannes Sixt
<j6t@kdbg.org>
Thu, 19 Nov 2015 19:09:46 +0000
(20:09 +0100)
committer
Jeff King
<peff@peff.net>
Fri, 20 Nov 2015 13:02:06 +0000
(08:02 -0500)
It is customary to have each command in test snippets on its own line.
Fix those instances that do not follow this guideline.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Jeff King <peff@peff.net>
t/t9300-fast-import.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
acf3af2
)
diff --git
a/t/t9300-fast-import.sh
b/t/t9300-fast-import.sh
index ceb3db3100e76a4d7c6e2e85b9fe93f364741bed..c36afdb8ffd9167fef6d799875db5bb8c2a5221c 100755
(executable)
--- a/
t/t9300-fast-import.sh
+++ b/
t/t9300-fast-import.sh
@@
-130,17
+130,20
@@
test_expect_success 'A: verify tree' '
echo "$file2_data" >expect
test_expect_success 'A: verify file2' '
echo "$file2_data" >expect
test_expect_success 'A: verify file2' '
- git cat-file blob master:file2 >actual && test_cmp expect actual
+ git cat-file blob master:file2 >actual &&
+ test_cmp expect actual
'
echo "$file3_data" >expect
test_expect_success 'A: verify file3' '
'
echo "$file3_data" >expect
test_expect_success 'A: verify file3' '
- git cat-file blob master:file3 >actual && test_cmp expect actual
+ git cat-file blob master:file3 >actual &&
+ test_cmp expect actual
'
printf "$file4_data" >expect
test_expect_success 'A: verify file4' '
'
printf "$file4_data" >expect
test_expect_success 'A: verify file4' '
- git cat-file blob master:file4 >actual && test_cmp expect actual
+ git cat-file blob master:file4 >actual &&
+ test_cmp expect actual
'
cat >expect <<EOF
'
cat >expect <<EOF
@@
-1656,10
+1659,14
@@
INPUT_END
test_expect_success 'P: superproject & submodule mix' '
git fast-import <input &&
git checkout subuse1 &&
test_expect_success 'P: superproject & submodule mix' '
git fast-import <input &&
git checkout subuse1 &&
- rm -rf sub && mkdir sub && (cd sub &&
- git init &&
- git fetch --update-head-ok .. refs/heads/sub:refs/heads/master &&
- git checkout master) &&
+ rm -rf sub &&
+ mkdir sub &&
+ (
+ cd sub &&
+ git init &&
+ git fetch --update-head-ok .. refs/heads/sub:refs/heads/master &&
+ git checkout master
+ ) &&
git submodule init &&
git submodule update
'
git submodule init &&
git submodule update
'
@@
-1697,7
+1704,8
@@
INPUT_END
test_expect_success 'P: verbatim SHA gitlinks' '
git branch -D sub &&
test_expect_success 'P: verbatim SHA gitlinks' '
git branch -D sub &&
- git gc && git prune &&
+ git gc &&
+ git prune &&
git fast-import <input &&
test $(git rev-parse --verify subuse2) = $(git rev-parse --verify subuse1)
'
git fast-import <input &&
test $(git rev-parse --verify subuse2) = $(git rev-parse --verify subuse1)
'
@@
-1942,17
+1950,20
@@
test_expect_success 'Q: verify first notes tree' '
echo "$note1_data" >expect
test_expect_success 'Q: verify first note for first commit' '
echo "$note1_data" >expect
test_expect_success 'Q: verify first note for first commit' '
- git cat-file blob refs/notes/foobar~2:$commit1 >actual && test_cmp expect actual
+ git cat-file blob refs/notes/foobar~2:$commit1 >actual &&
+ test_cmp expect actual
'
echo "$note2_data" >expect
test_expect_success 'Q: verify first note for second commit' '
'
echo "$note2_data" >expect
test_expect_success 'Q: verify first note for second commit' '
- git cat-file blob refs/notes/foobar~2:$commit2 >actual && test_cmp expect actual
+ git cat-file blob refs/notes/foobar~2:$commit2 >actual &&
+ test_cmp expect actual
'
echo "$note3_data" >expect
test_expect_success 'Q: verify first note for third commit' '
'
echo "$note3_data" >expect
test_expect_success 'Q: verify first note for third commit' '
- git cat-file blob refs/notes/foobar~2:$commit3 >actual && test_cmp expect actual
+ git cat-file blob refs/notes/foobar~2:$commit3 >actual &&
+ test_cmp expect actual
'
cat >expect <<EOF
'
cat >expect <<EOF
@@
-1980,17
+1991,20
@@
test_expect_success 'Q: verify second notes tree' '
echo "$note1b_data" >expect
test_expect_success 'Q: verify second note for first commit' '
echo "$note1b_data" >expect
test_expect_success 'Q: verify second note for first commit' '
- git cat-file blob refs/notes/foobar^:$commit1 >actual && test_cmp expect actual
+ git cat-file blob refs/notes/foobar^:$commit1 >actual &&
+ test_cmp expect actual
'
echo "$note2_data" >expect
test_expect_success 'Q: verify first note for second commit' '
'
echo "$note2_data" >expect
test_expect_success 'Q: verify first note for second commit' '
- git cat-file blob refs/notes/foobar^:$commit2 >actual && test_cmp expect actual
+ git cat-file blob refs/notes/foobar^:$commit2 >actual &&
+ test_cmp expect actual
'
echo "$note3_data" >expect
test_expect_success 'Q: verify first note for third commit' '
'
echo "$note3_data" >expect
test_expect_success 'Q: verify first note for third commit' '
- git cat-file blob refs/notes/foobar^:$commit3 >actual && test_cmp expect actual
+ git cat-file blob refs/notes/foobar^:$commit3 >actual &&
+ test_cmp expect actual
'
cat >expect <<EOF
'
cat >expect <<EOF
@@
-2015,7
+2029,8
@@
test_expect_success 'Q: verify third notes tree' '
echo "$note1c_data" >expect
test_expect_success 'Q: verify third note for first commit' '
echo "$note1c_data" >expect
test_expect_success 'Q: verify third note for first commit' '
- git cat-file blob refs/notes/foobar2:$commit1 >actual && test_cmp expect actual
+ git cat-file blob refs/notes/foobar2:$commit1 >actual &&
+ test_cmp expect actual
'
cat >expect <<EOF
'
cat >expect <<EOF
@@
-2041,7
+2056,8
@@
test_expect_success 'Q: verify fourth notes tree' '
echo "$note2b_data" >expect
test_expect_success 'Q: verify second note for second commit' '
echo "$note2b_data" >expect
test_expect_success 'Q: verify second note for second commit' '
- git cat-file blob refs/notes/foobar:$commit2 >actual && test_cmp expect actual
+ git cat-file blob refs/notes/foobar:$commit2 >actual &&
+ test_cmp expect actual
'
cat >input <<EOF
'
cat >input <<EOF