{"thread":{"id":"2979","subject":"trivial: use git-repo-config to detect if the test can be run on the repository","startedAt":"2006-01-05T11:55:03Z","lastAt":"2006-01-05T11:55:03Z","messageCount":1,"participants":["Alex Riesen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"14181","messageId":"81b0412b0601050355v7fcecaeem7e04c6ccb062bc3@mail.gmail.com","threadId":"2979","inReplyTo":null,"subject":"trivial: use git-repo-config to detect if the test can be run on the repository","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2006-01-05T11:55:03Z","receivedAt":"2006-01-05T11:55:03Z","isPatch":false,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"Signed-off-by: Alex Riesen <raa.lkml@gmail.com>\n\n\nSubject: [PATCH] use git-repo-config\n\nto detect if the test can be run on the repository\n\nSigned-off-by: Alex Riesen <raa.lkml@gmail.com>\n\n\n---\n\n t/t4000-diff-format.sh |    8 ++++++++\n 1 files changed, 8 insertions(+), 0 deletions(-)\n\na03836585a1bc3101c219a31f436d046f37782f2\ndiff --git a/t/t4000-diff-format.sh b/t/t4000-diff-format.sh\nindex beb6d8f..67b9681 100755\n--- a/t/t4000-diff-format.sh\n+++ b/t/t4000-diff-format.sh\n@@ -26,6 +26,14 @@ rm -f path1\n test_expect_success \\\n     'git-diff-files -p after editing work tree.' \\\n     'git-diff-files -p >current'\n+\n+# that's as far as it comes\n+if [ \"$(git repo-config --get core.filemode)\" = false ]\n+then\n+\tsay 'filemode disabled on the filesystem'\n+\ttest_done\n+fi\n+\n cat >expected <<\\EOF\n diff --git a/path0 b/path0\n old mode 100644\n-- \n1.0.GIT\n"}]}