소스 검색

Don't create .git/remotes folders on init

For historical reasons JGit was creating .git/remotes folder when
initialization an empty repository.  However, this folder is never
used and the new Git repository format doesn't contain them.

Removed the unnecessary remotes folder creation, it was removed from
C Git in 75c384efb5 ("Do not create $GIT_DIR/remotes/ directory
anymore") by Junio C Hamano on Dec 19 2006.  C Git hasn't made it
for almost 3 years.

Change-Id: I5473f3676a3642afdf9aaac44b7e6319c6e170b9
Signed-off-by: Sasa Zivkov <sasa.zivkov@sap.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
tags/v0.7.0
Sasa Zivkov 14 년 전
부모
커밋
99ab22c474
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  1. 0
    1
      org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java

+ 0
- 1
org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java 파일 보기

@@ -185,7 +185,6 @@ public class Repository {
objectDatabase.create();

new File(gitDir, "branches").mkdir();
new File(gitDir, "remotes").mkdir();
final String master = Constants.R_HEADS + Constants.MASTER;
refs.link(Constants.HEAD, master);


Loading…
취소
저장