From dcb7e477ee3d1846ae465e13ec42c7d040801f30 Mon Sep 17 00:00:00 2001 From: Tomasz Zarna Date: Fri, 18 Feb 2011 11:41:19 +0100 Subject: [PATCH] Wrong constant used when configuring a repository Bug: 337546 Change-Id: Ib2f31d621caa5f8b24ce74ce82499889d4f30550 --- org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java | 4 ++-- 1 file 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 b0837e5bb..54457e523 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 @@ private FetchResult fetch(Repository repo, URIish u) 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();