Skip to content

Commit 3c656bf

Browse files
t1900,t1901: fix test portability issues
Signed-off-by: Eslam reda ragheb <eslam.reda.div@gmail.com>
1 parent cb85ee3 commit 3c656bf

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

t/t1901-repo-structure.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -228,20 +228,20 @@ test_expect_success SHA1 'keyvalue and nul format' '
228228
229229
cat >expect <<-EOF &&
230230
references.count=$(reference_count_total)
231-
references.branches.count=$(git for-each-ref --format="%(refname)" refs/heads | sed -n "\$=")
232-
references.tags.count=$(git for-each-ref --format="%(refname)" refs/tags | sed -n "\$=")
233-
references.remotes.count=$(git for-each-ref --format="%(refname)" refs/remotes | sed -n "\$=")
231+
references.branches.count=1
232+
references.tags.count=1
233+
references.remotes.count=0
234234
references.others.count=0
235235
objects.count=$(object_count_total)
236-
objects.commits.count=$(object_type_count commit)
237-
objects.trees.count=$(object_type_count tree)
238-
objects.blobs.count=$(object_type_count blob)
239-
objects.tags.count=$(object_type_count tag)
236+
objects.commits.count=42
237+
objects.trees.count=42
238+
objects.blobs.count=42
239+
objects.tags.count=1
240240
objects.inflated_size=$(object_total_inflated_size)
241-
objects.commits.inflated_size=$(object_type_total_inflated_size commit)
242-
objects.trees.inflated_size=$(object_type_total_inflated_size tree)
243-
objects.blobs.inflated_size=$(object_type_total_inflated_size blob)
244-
objects.tags.inflated_size=$(object_type_total_inflated_size tag)
241+
objects.commits.inflated_size=9225
242+
objects.trees.inflated_size=28554
243+
objects.blobs.inflated_size=453
244+
objects.tags.inflated_size=132
245245
objects.max_inflated_size=$(object_max_inflated_size)
246246
objects.commits.max_inflated_size=$(object_type_max_inflated_size commit)
247247
objects.trees.max_inflated_size=$(object_type_max_inflated_size tree)

0 commit comments

Comments
 (0)