Merge branch 'rs/archive-mtime'
Test update. * rs/archive-mtime: t5000: use check_mtime()
This commit is contained in:
commit
6dd9d96129
@ -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 &&
|
||||
|
Loading…
Reference in New Issue
Block a user