]> source.dussan.org Git - jgit.git/commit
pgm: Report not in git repository rather than NPE 36/336/2
authorShawn O. Pearce <spearce@spearce.org>
Thu, 11 Mar 2010 18:47:12 +0000 (10:47 -0800)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 11 Mar 2010 23:15:03 +0000 (15:15 -0800)
commit6c64148f666dad0046086b65eb4912dafafe7a20
tree800201b2ad45ef64c2a9e647ea954f05c8b60e52
parent2ae9a85045915a38af2c300aa1874304fd8ea17b
pgm: Report not in git repository rather than NPE

If we can't find a Git repository after searching all the way up
to the filesystem root, JGit threw an NPE because we tried to get
the path of null.

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