瀏覽代碼

Only hide gitdir if the repository isn't bare

This problem was raised on the jgit list
https://dev.eclipse.org/mhonarc/lists/jgit-dev/msg02675.html

Change-Id: I8ce8a159120ce3747d31d6f012c6d2c0d0ce7917
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
tags/v3.5.1.201410131835-r
Matthias Sohn 9 年之前
父節點
當前提交
668acc6fc5
共有 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…
取消
儲存