Merge "Only hide gitdir if the repository isn't bare" into stable-3.5
This commit is contained in:
commit
2a01c98ea1
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue