diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-12-05 11:43:10 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-12-05 11:43:10 -0800 |
commit | a63373244060d8f7044e32a7a3d00211b62f7f7c (patch) | |
tree | 8bfc36cbb71fb129423b0a1ccab2de348fb0fccb /t | |
parent | Merge branch 'jk/gitweb-with-newer-cgi-multi-param' (diff) | |
parent | create_default_files(): don't set u+x bit on $GIT_DIR/config (diff) | |
download | tgif-a63373244060d8f7044e32a7a3d00211b62f7f7c.tar.xz |
Merge branch 'mh/config-flip-xbit-back-after-checking'
* mh/config-flip-xbit-back-after-checking:
create_default_files(): don't set u+x bit on $GIT_DIR/config
Diffstat (limited to 't')
-rwxr-xr-x | t/t0001-init.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t0001-init.sh b/t/t0001-init.sh index e62c0ffbc2..7de8d85ee8 100755 --- a/t/t0001-init.sh +++ b/t/t0001-init.sh @@ -12,6 +12,13 @@ check_config () { echo "expected a directory $1, a file $1/config and $1/refs" return 1 fi + + if test_have_prereq POSIXPERM && test -x "$1/config" + then + echo "$1/config is executable?" + return 1 + fi + bare=$(cd "$1" && git config --bool core.bare) worktree=$(cd "$1" && git config core.worktree) || worktree=unset |