From: Benjamin Muskalla Date: Mon, 2 Aug 2010 16:00:43 +0000 (+0200) Subject: Allow version builtin to run without git repository X-Git-Tag: v0.9.1~142 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fchanges%2F12%2F1212%2F1;p=jgit.git Allow version builtin to run without git repository The version builtin should be able to run without a git directory to call it from wherever you want. Change-Id: I1a3bce662e6788b860a275ee50315af8d5cc094a Signed-off-by: Benjamin Muskalla --- diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Version.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Version.java index 5bad4ef98c..9b51b871fc 100644 --- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Version.java +++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Version.java @@ -55,4 +55,9 @@ class Version extends TextBuiltin { out.println(MessageFormat.format(CLIText.get().jgitVersion, pkg.getImplementationVersion())); } + + @Override + protected final boolean requiresRepository() { + return false; + } }