ConfigConstants.CONFIG_CORE_SECTION, null, | ConfigConstants.CONFIG_CORE_SECTION, null, | ||||
ConfigConstants.CONFIG_KEY_HIDEDOTFILES, | ConfigConstants.CONFIG_KEY_HIDEDOTFILES, | ||||
HideDotFiles.DOTGITONLY); | HideDotFiles.DOTGITONLY); | ||||
if (hideDotFiles != HideDotFiles.FALSE) | |||||
if (hideDotFiles != HideDotFiles.FALSE && !isBare()) | |||||
getFS().setHidden(getDirectory(), true); | getFS().setHidden(getDirectory(), true); | ||||
refs.create(); | refs.create(); | ||||
objectDatabase.create(); | objectDatabase.create(); |