Merge "Only hide gitdir if the repository isn't bare" into stable-3.5

This commit is contained in:
Christian Halstrick 2014-10-13 11:57:55 -04:00 committed by Gerrit Code Review @ Eclipse.org
commit 2a01c98ea1
1 changed files with 1 additions and 1 deletions

View File

@ -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();