104
expect_from_to >expect.body $subprev $subprev-dirty &&
105
test_cmp expect.body actual.body &&
106
git diff --ignore-submodules HEAD >actual2 &&
107
- ! test -s actual2 &&
107
+ test_must_be_empty actual2 &&
108
git diff --ignore-submodules=untracked HEAD >actual3 &&
109
sed -e "1,/^@@/d" actual3 >actual3.body &&
110
expect_from_to >expect.body $subprev $subprev-dirty &&
111
test_cmp expect.body actual3.body &&
112
git diff --ignore-submodules=dirty HEAD >actual4 &&
113
- ! test -s actual4
113
+ test_must_be_empty actual4
114
'
115
116
test_expect_success 'git diff HEAD with dirty submodule (work tree, refs match) [.gitmodules]' '
117
git config diff.ignoreSubmodules dirty &&
118
git diff HEAD >actual &&
119
- ! test -s actual &&
119
+ test_must_be_empty actual &&
120
git config --add -f .gitmodules submodule.subname.ignore none &&
121
git config --add -f .gitmodules submodule.subname.path sub &&
122
git diff HEAD >actual &&
126
git config -f .gitmodules submodule.subname.ignore all &&
127
git config -f .gitmodules submodule.subname.path sub &&
128
git diff HEAD >actual2 &&
129
- ! test -s actual2 &&
129
+ test_must_be_empty actual2 &&
130
git config -f .gitmodules submodule.subname.ignore untracked &&
131
git diff HEAD >actual3 &&
132
sed -e "1,/^@@/d" actual3 >actual3.body &&
134
test_cmp expect.body actual3.body &&
135
git config -f .gitmodules submodule.subname.ignore dirty &&
136
git diff HEAD >actual4 &&
137
- ! test -s actual4 &&
137
+ test_must_be_empty actual4 &&
138
git config submodule.subname.ignore none &&
139
git config submodule.subname.path sub &&
140
git diff HEAD >actual &&
172
expect_from_to >expect.body $subprev $subprev-dirty &&
173
test_cmp expect.body actual.body &&
174
git diff --ignore-submodules=all HEAD >actual2 &&
175
- ! test -s actual2 &&
175
+ test_must_be_empty actual2 &&
176
git diff --ignore-submodules=untracked HEAD >actual3 &&
177
- ! test -s actual3 &&
177
+ test_must_be_empty actual3 &&
178
git diff --ignore-submodules=dirty HEAD >actual4 &&
179
- ! test -s actual4
179
+ test_must_be_empty actual4
180
'
181
182
test_expect_success 'git diff HEAD with dirty submodule (untracked, refs match) [.gitmodules]' '
183
git config --add -f .gitmodules submodule.subname.ignore all &&
184
git config --add -f .gitmodules submodule.subname.path sub &&
185
git diff HEAD >actual2 &&
186
- ! test -s actual2 &&
186
+ test_must_be_empty actual2 &&
187
git config -f .gitmodules submodule.subname.ignore untracked &&
188
git diff HEAD >actual3 &&
189
- ! test -s actual3 &&
189
+ test_must_be_empty actual3 &&
190
git config -f .gitmodules submodule.subname.ignore dirty &&
191
git diff HEAD >actual4 &&
192
- ! test -s actual4 &&
192
+ test_must_be_empty actual4 &&
193
git config submodule.subname.ignore none &&
194
git config submodule.subname.path sub &&
195
git diff HEAD >actual &&
211
expect_from_to >expect.body $subtip $subprev &&
212
test_cmp expect.body actual.body &&
213
git diff --ignore-submodules HEAD^..HEAD >actual &&
214
- ! test -s actual
214
+ test_must_be_empty actual
215
'
216
217
test_expect_success 'git diff between submodule commits [.gitmodules]' '
227
test_cmp expect.body actual.body &&
228
git config -f .gitmodules submodule.subname.ignore all &&
229
git diff HEAD^..HEAD >actual &&
230
- ! test -s actual &&
230
+ test_must_be_empty actual &&
231
git config submodule.subname.ignore dirty &&
232
git config submodule.subname.path sub &&
233
git diff HEAD^..HEAD >actual &&