Skip to content

Commit 8b02797

Browse files
committed
be a bit more precise when matching the lines
1 parent 40c5ecc commit 8b02797

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public void processStream(InputStream input) throws IOException {
8282
s = in.readLine();
8383
}
8484
}
85-
if (state == ParseState.REVISION && s.startsWith("revision")) {
85+
if (state == ParseState.REVISION && s.startsWith("revision ")) {
8686
if (entry != null) {
8787
entries.add(entry);
8888
}
@@ -96,7 +96,7 @@ public void processStream(InputStream input) throws IOException {
9696
state = ParseState.METADATA;
9797
s = in.readLine();
9898
}
99-
if (state == ParseState.METADATA && s.startsWith("date:")) {
99+
if (state == ParseState.METADATA && s.startsWith("date: ")) {
100100
parseDateAuthor(entry, s);
101101

102102
state = ParseState.COMMENT;

0 commit comments

Comments
 (0)