Skip to content

Commit

Permalink
clean the test/models folder
Browse files Browse the repository at this point in the history
  • Loading branch information
syarra committed Oct 21, 2017
1 parent 461f4ad commit 95c4856
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions initCobraToolbox.m
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,12 @@ function initCobraToolbox()
warning('Your global git configuration could not be changed.');
end

% Clean the test/models folder
[status, result] = system('git submodule status test/models');
if status == 0 && strcmp(result(1), '-')
[status, message, messageid] = rmdir([CBTDIR filesep 'test' filesep 'models'], 's');
end

% Update/initialize submodules
[status_gitSubmodule, result_gitSubmodule] = system('git submodule update --init');

Expand Down

0 comments on commit 95c4856

Please sign in to comment.