Skip to content

Commit 00ed24f

Browse files
Ryan DillVladimir Kotal
authored andcommitted
OpenGrok-2415 Improve history detection of ClearCase snapshot views on UNIX/Linux, closes #2415
1 parent 5e19f94 commit 00ed24f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,12 @@ public boolean isWorking() {
239239

240240
@Override
241241
boolean isRepositoryFor(File file, boolean interactive) {
242-
// if the parent contains a file named "view.dat" or
242+
// if the parent contains a file named "[.]view.dat" or
243243
// the parent is named "vobs" or the canonical path
244244
// is found in "cleartool lsvob -s"
245-
File f = new File(file, "view.dat");
246-
if (f.exists()) {
245+
File fWindows = new File(file, "view.dat");
246+
File fUnix = new File(file, ".view.dat");
247+
if (fWindows.exists() || fUnix.exists()) {
247248
return true;
248249
} else if (file.isDirectory() && file.getName().equalsIgnoreCase("vobs")) {
249250
return true;

0 commit comments

Comments
 (0)