Commits

Vladimir Glazunov  committed e21d4aa

vgbugs11: #i113989# ensure first single slash because of differences between Windows and Unix in evaluating of double slash

  • Participants
  • Parent commits 602259c

Comments (0)

Files changed (1)

File solenv/bin/modules/RepositoryHelper.pm

     my $rep_root_candidate = $self->{INITIAL_DIRECTORY};
     do {
         foreach (@possible_build_lists) {
-            if (-e $rep_root_candidate . '/prj/'.$_) {
+            my $test_file;
+            if ($rep_root_candidate eq '/') {
+                $test_file = '/prj/' . $_;
+            } else {
+                $test_file = $rep_root_candidate . '/prj/' . $_;
+            };
+            if (-e $test_file) {
                 $self->{REPOSITORY_ROOT} = File::Basename::dirname($rep_root_candidate);
                 return 1;
             };