Commit dca7503953926f729976546993c64c187f630b19

Stefan Sperling 2019-09-02T09:56:40

fix tag_list test failure on single-day-digit dates (patch by Evan Silberman)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/regress/cmdline/tag.sh b/regress/cmdline/tag.sh
index db9528a..ff9e9e5 100755
--- a/regress/cmdline/tag.sh
+++ b/regress/cmdline/tag.sh
@@ -136,11 +136,11 @@ function test_tag_list {
 	tag_id=`got ref -r $testroot/repo -l \
 		| grep "^refs/tags/$tag" | tr -d ' ' | cut -d: -f2`
 	local tagger_time=`git_show_tagger_time $testroot/repo $tag`
-	d1=`env TZ=UTC date -r $tagger_time +"%a %b %d %X %Y UTC"`
+	d1=`env TZ=UTC date -r $tagger_time +"%a %b %e %X %Y UTC"`
 	tag_id2=`got ref -r $testroot/repo -l \
 		| grep "^refs/tags/$tag2" | tr -d ' ' | cut -d: -f2`
 	local tagger_time2=`git_show_tagger_time $testroot/repo $tag2`
-	d2=`env TZ=UTC date -r $tagger_time2 +"%a %b %d %X %Y UTC"`
+	d2=`env TZ=UTC date -r $tagger_time2 +"%a %b %e %X %Y UTC"`
 
 	got tag -r $testroot/repo -l > $testroot/stdout