diff options
author | Tomasz Zarna | 2011-02-08 16:02:04 +0000 |
---|---|---|
committer | Tomasz Zarna | 2011-02-08 16:02:04 +0000 |
commit | 09467bcf12c3e6fbf5b6e9b6945c59c2ad48ec88 (patch) | |
tree | 893e1753cfb86dbe209e353e9b1c4fe4b30b8eb0 | |
parent | 1b30bfc57274a74213625f0c209680a595ae1838 (diff) | |
download | egit-09467bcf12c3e6fbf5b6e9b6945c59c2ad48ec88.tar.gz egit-09467bcf12c3e6fbf5b6e9b6945c59c2ad48ec88.tar.xz egit-09467bcf12c3e6fbf5b6e9b6945c59c2ad48ec88.zip |
Use ConfigConstants in CloneOperation.doInit(IProgressMonitor)
Bug: 336611
Change-Id: I4007964be0e5f0b006abc76a7351a6984bc5f413
-rw-r--r-- | org.eclipse.egit.core/src/org/eclipse/egit/core/op/CloneOperation.java | 7 |
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 775993e1d3..04ac9a0b2d 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(); } |