aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSasa Zivkov2009-10-09 08:43:45 -0400
committerShawn O. Pearce2009-10-31 19:13:30 -0400
commit99ab22c474ffccbdd9081959b80f3b4bd1967c84 (patch)
tree52351d686a603e19fc03216afc9c3d4b98e34d31
parentd4e7b7060610678e863fbf091746ae1fcc240b0d (diff)
downloadjgit-99ab22c474ffccbdd9081959b80f3b4bd1967c84.zip
jgit-99ab22c474ffccbdd9081959b80f3b4bd1967c84.tar.gz
jgit-99ab22c474ffccbdd9081959b80f3b4bd1967c84.tar.xz
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 75c384efb52d ("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>
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java1
1 files changed, 0 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
index 0ca4f79..5b8b34f 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
+++ b/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);