Browse Source

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

stable-3.5
Christian Halstrick 10 years ago committed by Gerrit Code Review @ Eclipse.org
parent
commit
2a01c98ea1
  1. 2
      org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileRepository.java

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

Loading…
Cancel
Save