Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Halstrick2014-10-13 15:57:55 +0000
committerGerrit Code Review @ Eclipse.org2014-10-13 15:57:55 +0000
commit2a01c98ea199bc101cfcda98ab12a7a4c4c20e52 (patch)
tree824b70e3716d8ee28f5cdc5f85f95dff4cf7d5f2
parent88b25a58f0164ab609061cb20cfb83c3bcb9a9ec (diff)
parent668acc6fc5b6bbf244fc6c9bdba7b4219c9df23b (diff)
downloadjgit-2a01c98ea199bc101cfcda98ab12a7a4c4c20e52.tar.gz
jgit-2a01c98ea199bc101cfcda98ab12a7a4c4c20e52.tar.xz
jgit-2a01c98ea199bc101cfcda98ab12a7a4c4c20e52.zip
Merge "Only hide gitdir if the repository isn't bare" into stable-3.5
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileRepository.java2
1 files changed, 1 insertions, 1 deletions
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 447e357d5a..9670bf10a2 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 class FileRepository extends Repository {
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();

Back to the top