From 5202332a58cda0b853c9942a6d2f0a5e70d1e37a Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Thu, 18 Mar 2010 10:21:31 +0000 Subject: [PATCH] mingw: do not hide bare repositories As reported in msysGit issue 450 the recent change to set the windows hidden attribute on the .git directory is being applied to bare git directories. This patch excludes bare repositories. Tested-by: Pat Thoyts Signed-off-by: Erik Faye-Lund --- compat/mingw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compat/mingw.c b/compat/mingw.c index d4d3fdfb2e..b8928575d7 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -291,7 +291,8 @@ static int make_hidden(const char *path) void mingw_mark_as_git_dir(const char *dir) { - if (hide_dotfiles != HIDE_DOTFILES_FALSE && make_hidden(dir)) + if (hide_dotfiles != HIDE_DOTFILES_FALSE && !is_bare_repository() && + make_hidden(dir)) warning("Failed to make '%s' hidden", dir); git_config_set("core.hideDotFiles", hide_dotfiles == HIDE_DOTFILES_FALSE ? "false" : -- 2.11.4.GIT