]> source.dussan.org Git - jgit.git/commit
Fix CloneCommand not to fetch into remote tracking branches when bare 86/3586/1
authorChristian Halstrick <christian.halstrick@sap.com>
Mon, 23 May 2011 22:45:21 +0000 (00:45 +0200)
committerShawn O. Pearce <spearce@spearce.org>
Tue, 31 May 2011 15:58:45 +0000 (08:58 -0700)
commitcc2197ed9c3be35c875c8316f17a2d6e8d338c88
treea124cc1028b294fd082471a5700a75963f71e142
parentcc319fff0db7e23e244fe650f4102150da5633d5
Fix CloneCommand not to fetch into remote tracking branches when bare

When cloning into a bare repository we should not create remote
tracking branches (e.g refs/remotes/origin/testX). Branches of the
remote repository should but fetched into into branches of the same
name (e.g refs/heads/testX). Also add the noCheckout option which
would prevent checkout after fetch.

Change-Id: I5d4cc0389f3f30c53aa0065f38119af2a1430909
Signed-off-by: Christian Halstrick <christian.halstrick@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CloneCommandTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/GitConstructionTest.java
org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java