Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-04-05 00:28:28 +0300
committerJunio C Hamano <gitster@pobox.com>2023-04-05 00:28:28 +0300
commit6dd9d9612991e10ef5f405ce3bdd78d479a5a517 (patch)
tree9fe7a7e07df154660c2e1e7739cd8ed1e9497a7b /t
parent9142fce9b09dbc12cd99704d3ea0899efb350c39 (diff)
parent1aaed69d11f216a96004518cbea3fadd28fbf530 (diff)
Merge branch 'rs/archive-mtime'
Test update. * rs/archive-mtime: t5000: use check_mtime()
Diffstat (limited to 't')
-rwxr-xr-xt/t5000-tar-tree.sh9
1 files changed, 1 insertions, 8 deletions
diff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh
index 918a2fc7c6..f0bd70dbd6 100755
--- a/t/t5000-tar-tree.sh
+++ b/t/t5000-tar-tree.sh
@@ -185,6 +185,7 @@ test_expect_success 'git archive' '
'
check_tar b
+check_mtime b a/a 1117231200
test_expect_success 'git archive --mtime' '
git archive --mtime=2002-02-02T02:02:02-0200 HEAD >with_mtime.tar
@@ -257,14 +258,6 @@ test_expect_success 'git archive --remote with configured remote' '
test_cmp_bin b.tar b5-nick.tar
'
-test_expect_success 'validate file modification time' '
- mkdir extract &&
- "$TAR" xf b.tar -C extract a/a &&
- test-tool chmtime --get extract/a/a >b.mtime &&
- echo "1117231200" >expected.mtime &&
- test_cmp expected.mtime b.mtime
-'
-
test_expect_success 'git get-tar-commit-id' '
git get-tar-commit-id <b.tar >actual &&
git rev-parse HEAD >expect &&