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/t0001-init.sh | |
parent | 0b0cd3792049ffad85a626b0f82d78c4cf4e59a2 (diff) | |
parent | 1f32ecffd864ea5b339883f94463b0b69f4aeb35 (diff) | |
download | git-a63373244060d8f7044e32a7a3d00211b62f7f7c.tar.gz |
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/t0001-init.sh')
-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 |