Skip to content

Commit d705469

Browse files
committed
change help to -V
running 'p4 help' outside of Perforce repository makes it fail
1 parent 18e21bd commit d705469

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/history/PerforceRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ boolean isRepositoryFor(File file, CommandTimeoutType cmdType) {
210210

211211
private static boolean isP4Working() {
212212
String repoCommand = getCommand(PerforceRepository.class, CMD_PROPERTY_KEY, CMD_FALLBACK);
213-
boolean works = checkCmd(repoCommand, "help");
213+
boolean works = checkCmd(repoCommand, "-V");
214214
LOGGER.log(Level.WARNING, "Command ''{0}'' does not work. " +
215215
"Some operations with Perforce repositories will fail as a result.", repoCommand);
216216
return works;

0 commit comments

Comments
 (0)