@@ -8,8 +8,8 @@ test_description='for-each-ref test'
8
8
. ./test-lib.sh
9
9
. " $TEST_DIRECTORY " /lib-gpg.sh
10
10
11
- # Mon Jul 3 15 :18:43 2006 +0000
12
- datestamp=1151939923
11
+ # Mon Jul 3 23 :18:43 2006 +0000
12
+ datestamp=1151968723
13
13
setdate_and_increment () {
14
14
GIT_COMMITTER_DATE=" $datestamp +0200"
15
15
datestamp=$( expr " $datestamp " + 1)
@@ -61,21 +61,21 @@ test_atom head object ''
61
61
test_atom head type ' '
62
62
test_atom head ' *objectname' ' '
63
63
test_atom head ' *objecttype' ' '
64
- test_atom head author
' A U Thor <[email protected] > 1151939924 +0200'
64
+ test_atom head author
' A U Thor <[email protected] > 1151968724 +0200'
65
65
test_atom head authorname ' A U Thor'
66
66
test_atom head authoremail
' <[email protected] >'
67
- test_atom head authordate ' Mon Jul 3 17 :18:44 2006 +0200'
68
- test_atom head committer
' C O Mitter <[email protected] > 1151939923 +0200'
67
+ test_atom head authordate ' Tue Jul 4 01 :18:44 2006 +0200'
68
+ test_atom head committer
' C O Mitter <[email protected] > 1151968723 +0200'
69
69
test_atom head committername ' C O Mitter'
70
70
test_atom head committeremail
' <[email protected] >'
71
- test_atom head committerdate ' Mon Jul 3 17 :18:43 2006 +0200'
71
+ test_atom head committerdate ' Tue Jul 4 01 :18:43 2006 +0200'
72
72
test_atom head tag ' '
73
73
test_atom head tagger ' '
74
74
test_atom head taggername ' '
75
75
test_atom head taggeremail ' '
76
76
test_atom head taggerdate ' '
77
- test_atom head creator
' C O Mitter <[email protected] > 1151939923 +0200'
78
- test_atom head creatordate ' Mon Jul 3 17 :18:43 2006 +0200'
77
+ test_atom head creator
' C O Mitter <[email protected] > 1151968723 +0200'
78
+ test_atom head creatordate ' Tue Jul 4 01 :18:43 2006 +0200'
79
79
test_atom head subject ' Initial'
80
80
test_atom head contents:subject ' Initial'
81
81
test_atom head body ' '
@@ -96,7 +96,7 @@ test_atom tag parent ''
96
96
test_atom tag numparent ' '
97
97
test_atom tag object $( git rev-parse refs/tags/testtag^0)
98
98
test_atom tag type ' commit'
99
- test_atom tag ' *objectname' ' 67a36f10722846e891fbada1ba48ed035de75581 '
99
+ test_atom tag ' *objectname' ' ea122842f48be4afb2d1fc6a4b96c05885ab7463 '
100
100
test_atom tag ' *objecttype' ' commit'
101
101
test_atom tag author ' '
102
102
test_atom tag authorname ' '
@@ -107,18 +107,18 @@ test_atom tag committername ''
107
107
test_atom tag committeremail ' '
108
108
test_atom tag committerdate ' '
109
109
test_atom tag tag ' testtag'
110
- test_atom tag tagger
' C O Mitter <[email protected] > 1151939925 +0200'
110
+ test_atom tag tagger
' C O Mitter <[email protected] > 1151968725 +0200'
111
111
test_atom tag taggername ' C O Mitter'
112
112
test_atom tag taggeremail
' <[email protected] >'
113
- test_atom tag taggerdate ' Mon Jul 3 17 :18:45 2006 +0200'
114
- test_atom tag creator
' C O Mitter <[email protected] > 1151939925 +0200'
115
- test_atom tag creatordate ' Mon Jul 3 17 :18:45 2006 +0200'
116
- test_atom tag subject ' Tagging at 1151939927 '
117
- test_atom tag contents:subject ' Tagging at 1151939927 '
113
+ test_atom tag taggerdate ' Tue Jul 4 01 :18:45 2006 +0200'
114
+ test_atom tag creator
' C O Mitter <[email protected] > 1151968725 +0200'
115
+ test_atom tag creatordate ' Tue Jul 4 01 :18:45 2006 +0200'
116
+ test_atom tag subject ' Tagging at 1151968727 '
117
+ test_atom tag contents:subject ' Tagging at 1151968727 '
118
118
test_atom tag body ' '
119
119
test_atom tag contents:body ' '
120
120
test_atom tag contents:signature ' '
121
- test_atom tag contents ' Tagging at 1151939927
121
+ test_atom tag contents ' Tagging at 1151968727
122
122
'
123
123
test_atom tag HEAD ' '
124
124
@@ -168,16 +168,16 @@ test_date () {
168
168
169
169
test_expect_success ' Check unformatted date fields output' '
170
170
test_date "" \
171
- "Mon Jul 3 17 :18:43 2006 +0200" \
172
- "Mon Jul 3 17 :18:44 2006 +0200" \
173
- "Mon Jul 3 17 :18:45 2006 +0200"
171
+ "Tue Jul 4 01 :18:43 2006 +0200" \
172
+ "Tue Jul 4 01 :18:44 2006 +0200" \
173
+ "Tue Jul 4 01 :18:45 2006 +0200"
174
174
'
175
175
176
176
test_expect_success ' Check format "default" formatted date fields output' '
177
177
test_date default \
178
- "Mon Jul 3 17 :18:43 2006 +0200" \
179
- "Mon Jul 3 17 :18:44 2006 +0200" \
180
- "Mon Jul 3 17 :18:45 2006 +0200"
178
+ "Tue Jul 4 01 :18:43 2006 +0200" \
179
+ "Tue Jul 4 01 :18:44 2006 +0200" \
180
+ "Tue Jul 4 01 :18:45 2006 +0200"
181
181
'
182
182
183
183
# Don't know how to do relative check because I can't know when this script
@@ -191,36 +191,36 @@ test_expect_success 'Check format "relative" date fields output' '
191
191
'
192
192
193
193
test_expect_success ' Check format "short" date fields output' '
194
- test_date short 2006-07-03 2006-07-03 2006-07-03
194
+ test_date short 2006-07-04 2006-07-04 2006-07-04
195
195
'
196
196
197
197
test_expect_success ' Check format "local" date fields output' '
198
198
test_date local \
199
- "Mon Jul 3 15 :18:43 2006" \
200
- "Mon Jul 3 15 :18:44 2006" \
201
- "Mon Jul 3 15 :18:45 2006"
199
+ "Mon Jul 3 23 :18:43 2006" \
200
+ "Mon Jul 3 23 :18:44 2006" \
201
+ "Mon Jul 3 23 :18:45 2006"
202
202
'
203
203
204
204
test_expect_success ' Check format "iso8601" date fields output' '
205
205
test_date iso8601 \
206
- "2006-07-03 17 :18:43 +0200" \
207
- "2006-07-03 17 :18:44 +0200" \
208
- "2006-07-03 17 :18:45 +0200"
206
+ "2006-07-04 01 :18:43 +0200" \
207
+ "2006-07-04 01 :18:44 +0200" \
208
+ "2006-07-04 01 :18:45 +0200"
209
209
'
210
210
211
211
test_expect_success ' Check format "rfc2822" date fields output' '
212
212
test_date rfc2822 \
213
- "Mon, 3 Jul 2006 17 :18:43 +0200" \
214
- "Mon, 3 Jul 2006 17 :18:44 +0200" \
215
- "Mon, 3 Jul 2006 17 :18:45 +0200"
213
+ "Tue, 4 Jul 2006 01 :18:43 +0200" \
214
+ "Tue, 4 Jul 2006 01 :18:44 +0200" \
215
+ "Tue, 4 Jul 2006 01 :18:45 +0200"
216
216
'
217
217
218
218
test_expect_success ' Check format "raw" date fields output' '
219
- test_date raw "1151939923 +0200" "1151939924 +0200" "1151939925 +0200"
219
+ test_date raw "1151968723 +0200" "1151968724 +0200" "1151968725 +0200"
220
220
'
221
221
222
222
test_expect_success ' Check format of strftime date fields' '
223
- echo "my date is 2006-07-03 " >expected &&
223
+ echo "my date is 2006-07-04 " >expected &&
224
224
git for-each-ref \
225
225
--format="%(authordate:format:my date is %Y-%m-%d)" \
226
226
refs/heads >actual &&
@@ -528,8 +528,8 @@ body contents
528
528
$sig "
529
529
530
530
cat > expected << EOF
531
- $( git rev-parse refs/tags/master) <[email protected] > refs/tags/master
532
531
$( git rev-parse refs/tags/bogo) <[email protected] > refs/tags/bogo
532
+ $( git rev-parse refs/tags/master) <[email protected] > refs/tags/master
533
533
EOF
534
534
535
535
test_expect_success ' Verify sort with multiple keys' '
0 commit comments