Merge "Only hide gitdir if the repository isn't bare" into stable-3.5
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileRepository.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileRepository.java index 447e357..9670bf1 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileRepository.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileRepository.java
@@ -273,7 +273,7 @@ public void create(boolean bare) throws IOException { ConfigConstants.CONFIG_CORE_SECTION, null, ConfigConstants.CONFIG_KEY_HIDEDOTFILES, HideDotFiles.DOTGITONLY); - if (hideDotFiles != HideDotFiles.FALSE) + if (hideDotFiles != HideDotFiles.FALSE && !isBare()) getFS().setHidden(getDirectory(), true); refs.create(); objectDatabase.create();