aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2011-02-18 05:41:19 (EST)
committerTomasz Zarna2011-02-18 05:41:19 (EST)
commitdcb7e477ee3d1846ae465e13ec42c7d040801f30 (patch)
tree8ef283108323d433a2ab5828670ec09fed6a2f52
parent681739b1c82877424192ace581014ad09bc28acf (diff)
downloadjgit-dcb7e477ee3d1846ae465e13ec42c7d040801f30.zip
jgit-dcb7e477ee3d1846ae465e13ec42c7d040801f30.tar.gz
jgit-dcb7e477ee3d1846ae465e13ec42c7d040801f30.tar.bz2
Wrong constant used when configuring a repositoryrefs/changes/31/2531/2
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java
index b0837e5..54457e5 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java
@@ -139,9 +139,9 @@ public class CloneCommand implements Callable<Git> {
config.update(repo.getConfig());
repo.getConfig().setString(ConfigConstants.CONFIG_BRANCH_SECTION,
- branch, ConfigConstants.CONFIG_REMOTE_SECTION, remote);
+ branch, ConfigConstants.CONFIG_KEY_REMOTE, remote);
repo.getConfig().setString(ConfigConstants.CONFIG_BRANCH_SECTION,
- branch, ConfigConstants.CONFIG_KEY_MERGE, branch); //$NON-NLS-1$ //$NON-NLS-2$
+ branch, ConfigConstants.CONFIG_KEY_MERGE, branch);
repo.getConfig().save();