{"thread":{"id":"16095","subject":"[PATCH 2/2] Use test-chmtime -v instead of perl in t5000 to get mtime of a file","startedAt":"2008-10-30T11:27:31Z","lastAt":"2008-10-30T11:27:31Z","messageCount":1,"participants":["Alex Riesen"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"94275","messageId":"81b0412b0810300427l259fb8ddl6ef92ae9dc8aeace@mail.gmail.com","threadId":"16095","inReplyTo":null,"subject":"[PATCH 2/2] Use test-chmtime -v instead of perl in t5000 to get mtime of a file","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2008-10-30T11:27:31Z","receivedAt":"2008-10-30T11:27:31Z","isPatch":true,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"The test was broken on admittedly broken combination of Windows, Cygwin,\nand ActiveState Perl.\n\nSigned-off-by: Alex Riesen <ariesen@harmanbecker.com>\n---\n t/t5000-tar-tree.sh |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\n\nFrom 1013c1a2b51a183bd0f6059b2e1a1ed68b2173d5 Mon Sep 17 00:00:00 2001\nFrom: Alex Riesen <raa.lkml@gmail.com>\nDate: Thu, 30 Oct 2008 11:20:27 +0100\nSubject: [PATCH 2/2] Use test-chmtime -v instead of perl in t5000 to get mtime of a file\n\nThe test was broken on admittedly broken combination of Windows, Cygwin,\nand ActiveState Perl.\n\nSigned-off-by: Alex Riesen <ariesen@harmanbecker.com>\n---\n t/t5000-tar-tree.sh |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh\nindex 0f27d73..c942c8b 100755\n--- a/t/t5000-tar-tree.sh\n+++ b/t/t5000-tar-tree.sh\n@@ -90,7 +90,7 @@ test_expect_success \\\n     'validate file modification time' \\\n     'mkdir extract &&\n      \"$TAR\" xf b.tar -C extract a/a &&\n-     perl -e '\\''print((stat(\"extract/a/a\"))[9], \"\\n\")'\\'' >b.mtime &&\n+     test-chmtime -v +0 extract/a/a |cut -f 1 >b.mtime &&\n      echo \"1117231200\" >expected.mtime &&\n      diff expected.mtime b.mtime'\n \n-- \n1.6.0.3.552.g4ff73\n\n"}]}