Browse Source

Wrong constant used when configuring a repository

Bug: 337546
Change-Id: Ib2f31d621caa5f8b24ce74ce82499889d4f30550
stable-0.12
Tomasz Zarna 14 years ago
parent
commit
dcb7e477ee
  1. 4
      org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java

4
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();

Loading…
Cancel
Save