Skip to content

Commit 8d86dd9

Browse files
committed
Do not hide dot files by default.
It hides the .git in such a way that it cannot be unhidden with Windows tools. And core.hidedotfiles=false in .gitignore is unworkable :-( as it is not read before the directory is created. Signed-off-by: Johannes Sixt <j6t@kdbg.org>
1 parent 392181d commit 8d86dd9

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

compat/mingw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ enum hide_dotfiles_type {
245245
};
246246

247247
static int core_restrict_inherited_handles = -1;
248-
static enum hide_dotfiles_type hide_dotfiles = HIDE_DOTFILES_DOTGITONLY;
248+
static enum hide_dotfiles_type hide_dotfiles = HIDE_DOTFILES_FALSE;
249249
static char *unset_environment_variables;
250250

251251
int mingw_core_config(const char *var, const char *value,

t/t0001-init.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,14 +463,14 @@ test_expect_success 're-init to move gitdir within linked worktree (relative)' '
463463
sep_git_dir_worktree linkwt relative
464464
'
465465

466-
test_expect_success MINGW '.git hidden' '
466+
test_expect_success MINGW '.git not hidden' '
467467
rm -rf newdir &&
468468
(
469469
sane_unset GIT_DIR GIT_WORK_TREE &&
470470
mkdir newdir &&
471471
cd newdir &&
472472
git init &&
473-
test_path_is_hidden .git
473+
! test_path_is_hidden .git
474474
) &&
475475
check_config newdir/.git false unset
476476
'

0 commit comments

Comments
 (0)