Skip to content

Commit

Permalink
Merge pull request #1586 from rmtfleming/ssl
Browse files Browse the repository at this point in the history
ssl verification temporarily avoided during init
  • Loading branch information
rmtfleming authored Mar 25, 2020
2 parents 4786358 + 71c1173 commit 909c850
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions initCobraToolbox.m
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ function initCobraToolbox(updateToolbox)
end

% temporary disable ssl verification
[status_setSSLVerify, result_setSSLVerify] = system('git config http.sslVerify false');
[status_setSSLVerify, result_setSSLVerify] = system('git config --global http.sslVerify false');

if status_setSSLVerify ~= 0
fprintf(strrep(result_setSSLVerify, '\', '\\'));
Expand Down Expand Up @@ -570,7 +570,7 @@ function initCobraToolbox(updateToolbox)
end

% restore global configuration by unsetting http.sslVerify
[status_setSSLVerify, result_setSSLVerify] = system('git config --unset http.sslVerify');
[status_setSSLVerify, result_setSSLVerify] = system('git config --global --unset http.sslVerify');

if status_setSSLVerify ~= 0
fprintf(strrep(result_setSSLVerify, '\', '\\'));
Expand Down

0 comments on commit 909c850

Please sign in to comment.