Commits

Anonymous committed ad855fb

#162096# use RepositoryHelper for missing source_config

  • Participants
  • Parent commits 8afc4d5

Comments (0)

Files changed (1)

solenv/bin/modules/SourceConfig.pm

 
 use Carp;
 use Cwd;
+use RepositoryHelper;
 use File::Basename;
 use File::Temp qw(tmpnam);
 
     my $self = shift;
     if (defined $self->{USER_SOURCE_ROOT}) {
         ${$self->{REPOSITORIES}}{File::Basename::basename($self->{USER_SOURCE_ROOT})} = $self->{USER_SOURCE_ROOT};
-        return;
+    } else {
+        my $repository_root = RepositoryHelper->new()->get_repository_root();
+        ${$self->{REPOSITORIES}}{File::Basename::basename($repository_root)} = $repository_root;
     };
-    croak('Cannot determine repository. Please make your checks!!');
 };
 
 sub read_config_file {