git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alex Riesen <raa.lkml@gmail.com>
To: Junio C Hamano <junkio@cox.net>, git@vger.kernel.org
Subject: trivial: use git-repo-config to detect if the test can be run on the repository
Date: Thu, 5 Jan 2006 12:55:03 +0100	[thread overview]
Message-ID: <81b0412b0601050355v7fcecaeem7e04c6ccb062bc3@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 49 bytes --]

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>

[-- Attachment #2: 0008-use-git-repo-config-to-detect-if-the-test-can-be-run-on-the-repository.txt --]
[-- Type: text/plain, Size: 801 bytes --]

Subject: [PATCH] use git-repo-config

to detect if the test can be run on the repository

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>


---

 t/t4000-diff-format.sh |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

a03836585a1bc3101c219a31f436d046f37782f2
diff --git a/t/t4000-diff-format.sh b/t/t4000-diff-format.sh
index beb6d8f..67b9681 100755
--- a/t/t4000-diff-format.sh
+++ b/t/t4000-diff-format.sh
@@ -26,6 +26,14 @@ rm -f path1
 test_expect_success \
     'git-diff-files -p after editing work tree.' \
     'git-diff-files -p >current'
+
+# that's as far as it comes
+if [ "$(git repo-config --get core.filemode)" = false ]
+then
+	say 'filemode disabled on the filesystem'
+	test_done
+fi
+
 cat >expected <<\EOF
 diff --git a/path0 b/path0
 old mode 100644
-- 
1.0.GIT

                 reply	other threads:[~2006-01-05 11:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=81b0412b0601050355v7fcecaeem7e04c6ccb062bc3@mail.gmail.com \
    --to=raa.lkml@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=junkio@cox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).