Skip to content

Commit 0425490

Browse files
committed
use longopt properly
1 parent 3dfcc19 commit 0425490

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -638,11 +638,10 @@ protected void buildTagList(File directory, CommandTimeoutType cmdType) {
638638
argv.add("-b");
639639
argv.add(getBranch());
640640
argv.add("--rev=reverse(tag())");
641-
argv.add("--template");
642641
// Use '|' as a revision separator rather than ':' to avoid collision with the commonly used
643642
// separator within the revision string (which is not used in this output but better
644643
// safe than sorry).
645-
argv.add("{latesttag % \"{rev}|{tag}\\n\"}");
644+
argv.add("--template={latesttag % \"{rev}|{tag}\\n\"}");
646645

647646
Executor executor = new Executor(argv, directory,
648647
RuntimeEnvironment.getInstance().getCommandTimeout(cmdType));

0 commit comments

Comments
 (0)