diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2010-08-13 22:40:04 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-08-18 21:43:23 +0200 |
commit | 535d9742852e12a4d4cfc878eb2e734df70a8f22 (patch) | |
tree | 18097d029fabb52d656ab670ff50ceefd7edfd6c /t/lib-prereq-FILEMODE.sh | |
parent | t/Makefile: Create test-results dir for smoke target (diff) | |
download | git-535d9742852e12a4d4cfc878eb2e734df70a8f22.tar.xz git-535d9742852e12a4d4cfc878eb2e734df70a8f22.zip |
tests: Move FILEMODE prerequisite to lib-prereq-FILEMODE.sh
Change the five tests that were all checking "git config --bool
core.filemode" to use a new FILEMODE prerequisite in
lib-prereq-FILEMODE.sh.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/lib-prereq-FILEMODE.sh')
-rw-r--r-- | t/lib-prereq-FILEMODE.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/t/lib-prereq-FILEMODE.sh b/t/lib-prereq-FILEMODE.sh new file mode 100644 index 0000000000..bce5a4c8bd --- /dev/null +++ b/t/lib-prereq-FILEMODE.sh @@ -0,0 +1,11 @@ +#!/bin/sh +# +# Copyright (c) 2010 Ævar Arnfjörð Bjarmason +# + +if test "$(git config --bool core.filemode)" = false +then + say 'filemode disabled on the filesystem' +else + test_set_prereq FILEMODE +fi |