diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-12-22 12:18:00 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-12-22 12:18:00 -0800 |
commit | e524fb497a0259cee4559f60d815218fc01ac466 (patch) | |
tree | ecfbe98babed896bf7b40bce00e191507afc3ec0 /t/t0001-init.sh | |
parent | 0b5c641490b11d887ec147b7acbe6f147bce6905 (diff) | |
parent | 1f32ecffd864ea5b339883f94463b0b69f4aeb35 (diff) | |
download | git-e524fb497a0259cee4559f60d815218fc01ac466.tar.gz git-e524fb497a0259cee4559f60d815218fc01ac466.tar.xz |
Merge branch 'mh/config-flip-xbit-back-after-checking' into maint
"git init" (hence "git clone") initialized the per-repository
configuration file .git/config with x-bit by mistake.
* 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 e62c0ffbc..7de8d85ee 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 |