瀏覽代碼

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

tags/v3.5.1.201410131835-r
Christian Halstrick 9 年之前
父節點
當前提交
2a01c98ea1
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileRepository.java

+ 1
- 1
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…
取消
儲存