Initialize TextBuiltins with the repository before execution
commit5137dd5ffc1c86522e0a2f7aa6f387c4cef07780
authorShawn O. Pearce <spearce@spearce.org>
Fri, 18 Jul 2008 01:43:59 +0000 (17 21:43 -0400)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Wed, 23 Jul 2008 19:52:08 +0000 (23 21:52 +0200)
tree91156934e2a609e706da9b7e8c3c2223ce78d117
parentf57befbb00bb259a1b499695bd2dd5734b0fba19
Initialize TextBuiltins with the repository before execution

This way the default constructor used by the option parser does
not cause the output stream to allocate until we have chosen to
really work with this builtin command and have a repository for
it to read/write against.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit.pgm/src/org/spearce/jgit/pgm/Main.java
org.spearce.jgit.pgm/src/org/spearce/jgit/pgm/TextBuiltin.java