diff options
author | Christian Halstrick <christian.halstrick@sap.com> | 2014-10-13 11:57:55 -0400 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org <gerrit@eclipse.org> | 2014-10-13 11:57:55 -0400 |
commit | 2a01c98ea199bc101cfcda98ab12a7a4c4c20e52 (patch) | |
tree | 824b70e3716d8ee28f5cdc5f85f95dff4cf7d5f2 | |
parent | 88b25a58f0164ab609061cb20cfb83c3bcb9a9ec (diff) | |
parent | 668acc6fc5b6bbf244fc6c9bdba7b4219c9df23b (diff) | |
download | jgit-2a01c98ea199bc101cfcda98ab12a7a4c4c20e52.tar.gz 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.java | 2 |
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(); |