File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,10 @@ test_expect_success 'detect copies' '
177
177
level=$(git diff-tree -r -C --find-copies-harder HEAD | sed 1d | cut -f1 | cut -d" " -f5 | sed "s/C0*//") &&
178
178
test -n "$level" && test "$level" -gt 0 && test "$level" -lt 98 &&
179
179
src=$(git diff-tree -r -C --find-copies-harder HEAD | sed 1d | cut -f2) &&
180
- test "$src" = file10 || test "$src" = file11 &&
180
+ case "$src" in
181
+ file10 | file11) : ;; # happy
182
+ *) false ;; # not
183
+ &&
181
184
git config git-p4.detectCopies $(($level + 2)) &&
182
185
git p4 submit &&
183
186
p4 filelog //depot/file12 &&
@@ -191,7 +194,10 @@ test_expect_success 'detect copies' '
191
194
level=$(git diff-tree -r -C --find-copies-harder HEAD | sed 1d | cut -f1 | cut -d" " -f5 | sed "s/C0*//") &&
192
195
test -n "$level" && test "$level" -gt 2 && test "$level" -lt 100 &&
193
196
src=$(git diff-tree -r -C --find-copies-harder HEAD | sed 1d | cut -f2) &&
194
- test "$src" = file10 || test "$src" = file11 || test "$src" = file12 &&
197
+ case "$src" in
198
+ file10 | file11 | file12) : ;; # happy
199
+ *) false ;; # not
200
+ &&
195
201
git config git-p4.detectCopies $(($level - 2)) &&
196
202
git p4 submit &&
197
203
p4 filelog //depot/file13 &&
You can’t perform that action at this time.
0 commit comments