Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

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 <>
  • Loading branch information...
commit d0c163a3a281a09eff9daed0146cca96645f12c0 1 parent 06d0a8c
@kusma kusma authored dscho committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  compat/mingw.c
3  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);
hide_dotfiles == HIDE_DOTFILES_FALSE ? "false" :

0 comments on commit d0c163a

Please sign in to comment.
Something went wrong with that request. Please try again.