@@ -20,6 +20,10 @@ setdate_and_increment () {
20
20
}
21
21
22
22
test_expect_success setup '
23
+ test_oid_cache <<-EOF &&
24
+ disklen sha1:138
25
+ disklen sha256:154
26
+ EOF
23
27
setdate_and_increment &&
24
28
echo "Using $datestamp" > one &&
25
29
git add one &&
@@ -50,6 +54,9 @@ test_atom() {
50
54
"
51
55
}
52
56
57
+ hexlen=$( test_oid hexsz)
58
+ disklen=$( test_oid disklen)
59
+
53
60
test_atom head refname refs/heads/master
54
61
test_atom head refname: refs/heads/master
55
62
test_atom head refname:short master
@@ -82,9 +89,9 @@ test_atom head push:rstrip=-1 refs
82
89
test_atom head push:strip=1 remotes/myfork/master
83
90
test_atom head push:strip=-1 master
84
91
test_atom head objecttype commit
85
- test_atom head objectsize 171
86
- test_atom head objectsize:disk 138
87
- test_atom head deltabase 0000000000000000000000000000000000000000
92
+ test_atom head objectsize $(( 131 + hexlen ))
93
+ test_atom head objectsize:disk $disklen
94
+ test_atom head deltabase $ZERO_OID
88
95
test_atom head objectname $( git rev-parse refs/heads/master)
89
96
test_atom head objectname:short $( git rev-parse --short refs/heads/master)
90
97
test_atom head objectname:short=1 $( git rev-parse --short=1 refs/heads/master)
@@ -125,11 +132,11 @@ test_atom tag refname:short testtag
125
132
test_atom tag upstream ' '
126
133
test_atom tag push ' '
127
134
test_atom tag objecttype tag
128
- test_atom tag objectsize 154
129
- test_atom tag objectsize:disk 138
130
- test_atom tag ' *objectsize:disk' 138
131
- test_atom tag deltabase 0000000000000000000000000000000000000000
132
- test_atom tag ' *deltabase' 0000000000000000000000000000000000000000
135
+ test_atom tag objectsize $(( 114 + hexlen ))
136
+ test_atom tag objectsize:disk $disklen
137
+ test_atom tag ' *objectsize:disk' $disklen
138
+ test_atom tag deltabase $ZERO_OID
139
+ test_atom tag ' *deltabase' $ZERO_OID
133
140
test_atom tag objectname $( git rev-parse refs/tags/testtag)
134
141
test_atom tag objectname:short $( git rev-parse --short refs/tags/testtag)
135
142
test_atom head objectname:short=1 $( git rev-parse --short=1 refs/heads/master)
@@ -139,7 +146,7 @@ test_atom tag parent ''
139
146
test_atom tag numparent ' '
140
147
test_atom tag object $( git rev-parse refs/tags/testtag^0)
141
148
test_atom tag type ' commit'
142
- test_atom tag ' *objectname' ' ea122842f48be4afb2d1fc6a4b96c05885ab7463 '
149
+ test_atom tag ' *objectname' $( git rev-parse refs/tags/testtag^{} )
143
150
test_atom tag ' *objecttype' ' commit'
144
151
test_atom tag author ' '
145
152
test_atom tag authorname ' '
0 commit comments