aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Duft2012-04-10 10:42:25 (EDT)
committerMarkus Duft2012-09-12 04:34:51 (EDT)
commit6c68e1cf239b7efeac23cc504422006fc4228a7c (patch)
tree495a7f740af7f915d4cb059d17a809b65bc86d51
parentf6d0474bba2c3f8c1bd0a92ea77d43abc40c54a6 (diff)
downloadegit-6c68e1cf239b7efeac23cc504422006fc4228a7c.zip
egit-6c68e1cf239b7efeac23cc504422006fc4228a7c.tar.gz
egit-6c68e1cf239b7efeac23cc504422006fc4228a7c.tar.bz2
Restore ability to not checkout any branch in clone operationrefs/changes/57/5557/5
-rw-r--r--org.eclipse.egit.core/src/org/eclipse/egit/core/op/CloneOperation.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.egit.core/src/org/eclipse/egit/core/op/CloneOperation.java b/org.eclipse.egit.core/src/org/eclipse/egit/core/op/CloneOperation.java
index d6ab575..a6af63c 100644
--- a/org.eclipse.egit.core/src/org/eclipse/egit/core/op/CloneOperation.java
+++ b/org.eclipse.egit.core/src/org/eclipse/egit/core/op/CloneOperation.java
@@ -137,6 +137,8 @@ public class CloneOperation {
cloneRepository.setCredentialsProvider(credentialsProvider);
if (refName != null)
cloneRepository.setBranch(refName);
+ else
+ cloneRepository.setNoCheckout(true);
cloneRepository.setDirectory(workdir);
cloneRepository.setProgressMonitor(gitMonitor);
cloneRepository.setRemote(remoteName);