summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorTomasz Zarna2011-02-08 11:02:04 (EST)
committer Tomasz Zarna2011-02-08 11:02:04 (EST)
commit09467bcf12c3e6fbf5b6e9b6945c59c2ad48ec88 (patch)
tree893e1753cfb86dbe209e353e9b1c4fe4b30b8eb0
parent1b30bfc57274a74213625f0c209680a595ae1838 (diff)
downloadegit-09467bcf12c3e6fbf5b6e9b6945c59c2ad48ec88.zip
egit-09467bcf12c3e6fbf5b6e9b6945c59c2ad48ec88.tar.gz
egit-09467bcf12c3e6fbf5b6e9b6945c59c2ad48ec88.tar.bz2
Use ConfigConstants in CloneOperation.doInit(IProgressMonitor)refs/changes/55/2455/3
-rw-r--r--org.eclipse.egit.core/src/org/eclipse/egit/core/op/CloneOperation.java7
1 files changed, 4 insertions, 3 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 775993e..04ac9a0 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
@@ -26,6 +26,7 @@ import org.eclipse.egit.core.EclipseGitProgressTransformer;
import org.eclipse.jgit.dircache.DirCacheCheckout;
import org.eclipse.jgit.errors.NotSupportedException;
import org.eclipse.jgit.errors.TransportException;
+import org.eclipse.jgit.lib.ConfigConstants;
import org.eclipse.jgit.lib.Constants;
import org.eclipse.jgit.lib.Ref;
import org.eclipse.jgit.lib.RefUpdate;
@@ -200,7 +201,7 @@ public class CloneOperation {
// we're setting up for a clone with a checkout
config.setBoolean(
- "core", null, "bare", false); //$NON-NLS-1$ //$NON-NLS-2$
+ ConfigConstants.CONFIG_CORE_SECTION, null, ConfigConstants.CONFIG_KEY_BARE, false);
remoteConfig.update(config);
@@ -210,8 +211,8 @@ public class CloneOperation {
String branchName = ref.getName().substring(Constants.R_HEADS.length());
// setup the default remote branch for branchName
- config.setString("branch", branchName, "remote", remoteName); //$NON-NLS-1$ //$NON-NLS-2$
- config.setString("branch", branchName, "merge", ref.getName()); //$NON-NLS-1$ //$NON-NLS-2$
+ config.setString(ConfigConstants.CONFIG_BRANCH_SECTION, branchName, ConfigConstants.CONFIG_KEY_REMOTE, remoteName);
+ config.setString(ConfigConstants.CONFIG_BRANCH_SECTION, branchName, ConfigConstants.CONFIG_KEY_MERGE, ref.getName());
}
config.save();
}