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 <bmuskalla@eclipsesource.com>
This commit is contained in:
Benjamin Muskalla 2010-08-02 18:00:43 +02:00
parent 94207f0a43
commit d08be7aceb
1 changed files with 5 additions and 0 deletions

View File

@ -55,4 +55,9 @@ protected void run() throws Exception {
out.println(MessageFormat.format(CLIText.get().jgitVersion, pkg.getImplementationVersion()));
}
@Override
protected final boolean requiresRepository() {
return false;
}
}