aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2010-07-02 17:01:40 -0700
committerShawn O. Pearce <spearce@spearce.org>2010-07-03 10:54:30 -0700
commit08d349a27bbff4b0d3ee67eb6ddd4818e070c86e (patch)
tree90e4f66206bf699f2dd54a4c61061543cc9e25e9 /org.eclipse.jgit.pgm
parentfe9860a4441d606eb6d56da24197eb1797f275dc (diff)
downloadjgit-08d349a27bbff4b0d3ee67eb6ddd4818e070c86e.tar.gz
jgit-08d349a27bbff4b0d3ee67eb6ddd4818e070c86e.zip
amend commit: Refactor repository construction to builder class
During code review, Alex raised a few comments about commit 532421d98925 ("Refactor repository construction to builder class"). Due to the size of the related series we aren't going to go back and rebase in something this minor, so resolve them as a follow-up commit instead. Change-Id: Ied52f7a8f7252743353c58d20bfc3ec498933e00 Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'org.eclipse.jgit.pgm')
-rw-r--r--org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Main.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Main.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Main.java
index 2da210d7e8..ab11062cc2 100644
--- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Main.java
+++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Main.java
@@ -163,17 +163,17 @@ public class Main {
final TextBuiltin cmd = subcommand;
if (cmd.requiresRepository()) {
- RepositoryBuilder frb = new RepositoryBuilder() //
+ RepositoryBuilder rb = new RepositoryBuilder() //
.setGitDir(gitdir) //
.readEnvironment() //
.findGitDir();
- if (frb.getGitDir() == null) {
+ if (rb.getGitDir() == null) {
writer.println(CLIText.get().cantFindGitDirectory);
writer.flush();
System.exit(1);
}
- cmd.init(frb.build(), null);
+ cmd.init(rb.build(), null);
} else {
cmd.init(null, gitdir);
}