Skip to content

Commit

Permalink
Merge 9cbbb73 into 1f1da79
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed May 31, 2020
2 parents 1f1da79 + 9cbbb73 commit a10739c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 26 deletions.
2 changes: 1 addition & 1 deletion doc/downloads/index.js
Expand Up @@ -40,7 +40,7 @@ var jsonData = { "versions": [
{ "change": "<strong>Python support:</strong> make it possible to retrieve the type of a <code>DataStoreVariable</code> object (see issue <a href=\"https://github.com/opencor/opencor/issues/2336\">#2336</a>)." },
{ "change": "<strong>CellML Annotation view:</strong> use the new <a href=\"https://identifiers.org/\">identifiers.org</a> platform (see issue <a href=\"https://github.com/opencor/opencor/issues/2190\">#2190</a>)." },
{ "change": "<strong>Simulation Experiment view:</strong> fixed a couple of GUI glitches (see issue <a href=\"https://github.com/opencor/opencor/issues/2332\">#2332</a>)." },
{ "change": "<strong>Third-party libraries:</strong> upgraded <a href=\"https://riverbankcomputing.com/software/qscintilla/intro\">QScintilla</a> to version 2.11.4 (see issue <a href=\"https://github.com/opencor/opencor/issues/2307\">#2307</a>). Upgraded <a href=\"https://llvm.org/\">LLVM</a>+<a href=\"https://clang.llvm.org/\">Clang</a> to version 10.0.0 (see issue <a href=\"https://github.com/opencor/opencor/issues/2314\">#2314</a>). Upgraded the <a href=\"https://openssl.org/\">OpenSSL</a> library to version 1.1.1g (see issue <a href=\"https://github.com/opencor/opencor/issues/2326\">#2326</a>). Upgraded <a href=\"https://jquery.com/\">jQuery</a> to version 3.5.1 (see issue <a href=\"https://github.com/opencor/opencor/issues/2338\">#2338</a>). Upgraded <a href=\"https://libgit2.github.com/\">libgit2</a> to version 1.0.0 (see issue <a href=\"https://github.com/opencor/opencor/issues/2340\">#2340</a>). Upgraded <a href=\"https://mesa3d.org/\">Mesa</a> to version 20.0.7 (see issue <a href=\"https://github.com/opencor/opencor/issues/2342\">#2342</a>). Upgraded the <a href=\"https://computation.llnl.gov/projects/sundials\">SUNDIALS</a> library to version 5.3.0 (see issue <a href=\"https://github.com/opencor/opencor/issues/2344\">#2344</a>)." }
{ "change": "<strong>Third-party libraries:</strong> upgraded <a href=\"https://riverbankcomputing.com/software/qscintilla/intro\">QScintilla</a> to version 2.11.4 (see issue <a href=\"https://github.com/opencor/opencor/issues/2307\">#2307</a>). Upgraded <a href=\"https://llvm.org/\">LLVM</a>+<a href=\"https://clang.llvm.org/\">Clang</a> to version 10.0.0 (see issue <a href=\"https://github.com/opencor/opencor/issues/2314\">#2314</a>). Upgraded the <a href=\"https://openssl.org/\">OpenSSL</a> library to version 1.1.1g (see issue <a href=\"https://github.com/opencor/opencor/issues/2326\">#2326</a>). Upgraded <a href=\"https://jquery.com/\">jQuery</a> to version 3.5.1 (see issue <a href=\"https://github.com/opencor/opencor/issues/2338\">#2338</a>). Upgraded <a href=\"https://mesa3d.org/\">Mesa</a> to version 20.0.7 (see issue <a href=\"https://github.com/opencor/opencor/issues/2342\">#2342</a>). Upgraded the <a href=\"https://computation.llnl.gov/projects/sundials\">SUNDIALS</a> library to version 5.3.0 (see issue <a href=\"https://github.com/opencor/opencor/issues/2344\">#2344</a>). Upgraded <a href=\"https://libgit2.github.com/\">libgit2</a> to version 0.28.5 (see issue <a href=\"https://github.com/opencor/opencor/issues/2346\">#2346</a>)." }
]
},
{ "major": 0, "minor": 5, "patch": 0, "day": 15, "month": 10, "year": 2016, "type": 0, "license": 1,
Expand Down
15 changes: 7 additions & 8 deletions src/plugins/support/PMRSupport/src/pmrworkspace.cpp
Expand Up @@ -48,7 +48,6 @@ along with this program. If not, see <https://gnu.org/licenses>.
#include "git2/remote.h"
#include "git2/repository.h"
#include "git2/signature.h"
#include "git2/status.h"
#include "libgit2end.h"

//==============================================================================
Expand Down Expand Up @@ -242,7 +241,7 @@ void PmrWorkspace::clone(const QString &pPath)

setGitAuthorization(&authorizationStrArray);

git_clone_options_init(&cloneOptions, GIT_CLONE_OPTIONS_VERSION);
git_clone_init_options(&cloneOptions, GIT_CLONE_OPTIONS_VERSION);

cloneOptions.fetch_opts.callbacks.certificate_check = certificateCheckCallback;
cloneOptions.fetch_opts.callbacks.payload = this;
Expand Down Expand Up @@ -617,7 +616,7 @@ void PmrWorkspace::refreshStatus()
if (isOpen()) {
git_status_options statusOptions;

git_status_options_init(&statusOptions, GIT_STATUS_OPTIONS_VERSION);
git_status_init_options(&statusOptions, GIT_STATUS_OPTIONS_VERSION);

statusOptions.flags = GIT_STATUS_OPT_INCLUDE_UNTRACKED
|GIT_STATUS_OPT_INCLUDE_UNMODIFIED
Expand Down Expand Up @@ -995,7 +994,7 @@ StagedFiles PmrWorkspace::stagedFiles()
if (git_repository_index(&index, mGitRepository) == GIT_OK) {
git_status_options statusOptions;

git_status_options_init(&statusOptions, GIT_STATUS_OPTIONS_VERSION);
git_status_init_options(&statusOptions, GIT_STATUS_OPTIONS_VERSION);

statusOptions.flags = GIT_STATUS_OPT_RENAMES_HEAD_TO_INDEX
|GIT_STATUS_OPT_SORT_CASE_INSENSITIVELY;
Expand Down Expand Up @@ -1132,7 +1131,7 @@ int PmrWorkspace::fetchheadForeachCallback(const char *pReferenceName,

git_checkout_options checkoutOptions;

git_checkout_options_init(&checkoutOptions, GIT_CHECKOUT_OPTIONS_VERSION);
git_checkout_init_options(&checkoutOptions, GIT_CHECKOUT_OPTIONS_VERSION);

checkoutOptions.checkout_strategy = GIT_CHECKOUT_SAFE
|GIT_CHECKOUT_RECREATE_MISSING
Expand Down Expand Up @@ -1213,7 +1212,7 @@ int PmrWorkspace::fetchheadForeachCallback(const char *pReferenceName,

git_merge_options mergeOptions;

git_merge_options_init(&mergeOptions, GIT_MERGE_OPTIONS_VERSION);
git_merge_init_options(&mergeOptions, GIT_MERGE_OPTIONS_VERSION);

res = git_merge(gitRepository,
const_cast<const git_annotated_commit **>(&remoteCommitHead),
Expand Down Expand Up @@ -1262,7 +1261,7 @@ bool PmrWorkspace::fetch()
git_strarray authorizationStrArray = { nullptr, 0 };
git_remote_callbacks remoteCallbacks;

git_fetch_options_init(&fetchOptions, GIT_FETCH_OPTIONS_VERSION);
git_fetch_init_options(&fetchOptions, GIT_FETCH_OPTIONS_VERSION);

setGitAuthorization(&authorizationStrArray);

Expand Down Expand Up @@ -1365,7 +1364,7 @@ void PmrWorkspace::push()
git_strarray authorizationStrArray = { nullptr, 0 };
git_remote_callbacks remoteCallbacks;

git_push_options_init(&pushOptions, GIT_PUSH_OPTIONS_VERSION);
git_push_init_options(&pushOptions, GIT_PUSH_OPTIONS_VERSION);

setGitAuthorization(&authorizationStrArray);

Expand Down
34 changes: 17 additions & 17 deletions src/plugins/thirdParty/libgit2/CMakeLists.txt
Expand Up @@ -3,21 +3,21 @@ project(libgit2Plugin)
# Name and version of our package

set(PACKAGE_NAME libgit2)
set(PACKAGE_VERSION 1.0.0)
set(PACKAGE_VERSION 0.28.5)

# Version of our library

set(MAJOR_LIBRARY_VERSION 1)
set(MINOR_LIBRARY_VERSION 0)
set(LIBRARY_VERSION ${MAJOR_LIBRARY_VERSION}.${MINOR_LIBRARY_VERSION}.0)
set(MAJOR_LIBRARY_VERSION 0)
set(MINOR_LIBRARY_VERSION 28)
set(LIBRARY_VERSION ${MAJOR_LIBRARY_VERSION}.${MINOR_LIBRARY_VERSION}.5)

# Git tag for our library

set(GIT_TAG v1.0.0-opencor)
set(GIT_TAG v0.28.5-opencor)

# Release tag

set(RELEASE_TAG v1.0.0-opencor)
set(RELEASE_TAG v0.28.5-opencor)

# Specify where our local package will be installed

Expand All @@ -33,7 +33,7 @@ elseif(APPLE)
set(SHARED_LIBRARY ${CMAKE_SHARED_LIBRARY_PREFIX}git2.${MINOR_LIBRARY_VERSION}${CMAKE_SHARED_LIBRARY_SUFFIX})
set(IMPORT_LIBRARY ${SHARED_LIBRARY})
else()
set(SHARED_LIBRARY ${CMAKE_SHARED_LIBRARY_PREFIX}git2${CMAKE_SHARED_LIBRARY_SUFFIX}.${MAJOR_LIBRARY_VERSION}.${MINOR_LIBRARY_VERSION})
set(SHARED_LIBRARY ${CMAKE_SHARED_LIBRARY_PREFIX}git2${CMAKE_SHARED_LIBRARY_SUFFIX}.${MINOR_LIBRARY_VERSION})
set(IMPORT_LIBRARY ${SHARED_LIBRARY})
endif()

Expand Down Expand Up @@ -65,31 +65,31 @@ if(USE_PREBUILT_LIBGIT2_PACKAGE)
if(WIN32)
if(RELEASE_MODE)
retrieve_package_file(${PACKAGE_NAME} ${PACKAGE_VERSION}
${FULL_LOCAL_EXTERNAL_PACKAGE_DIR} 3289b243874b50e814f144fdd3557027a970c851
${FULL_LOCAL_EXTERNAL_PACKAGE_DIR} 712c9ee0817ebb3c48fc02e16964323cdd32aaac
RELEASE_TAG ${RELEASE_TAG}
SHA1_FILES ${SHA1_FILES}
SHA1_VALUES 5bcd488901c23ca7be89ff6bfb7ee2eccee8927c
e293290b23506370386dbcb97fbe091bd798dcda)
SHA1_VALUES 40f2f3f5986eebb1534597c58159a1b2c7e88cad
f7b4d7ff693beab13bba073221d90c11b4a2e685)
else()
retrieve_package_file(${PACKAGE_NAME} ${PACKAGE_VERSION}
${FULL_LOCAL_EXTERNAL_PACKAGE_DIR} d3bd3cb515a8902f69323f8371ec816095308b4b
${FULL_LOCAL_EXTERNAL_PACKAGE_DIR} 67ff42e6f60f588a306f89f07b52e7452e72ad24
RELEASE_TAG ${RELEASE_TAG}
SHA1_FILES ${SHA1_FILES}
SHA1_VALUES c6bd3de9a60954413f7139ebb26e9bcaa370700e
63265399b64faf3e5a4da412f7023570b3d207fc)
SHA1_VALUES a51f1484b33f7e3b2841e5822b39f1100eb3adbd
5b0b056e05ee88db574b613b04139c95c8375776)
endif()
elseif(APPLE)
retrieve_package_file(${PACKAGE_NAME} ${PACKAGE_VERSION}
${FULL_LOCAL_EXTERNAL_PACKAGE_DIR} 2122a45d2901788ea68401369e08533d745aaec6
${FULL_LOCAL_EXTERNAL_PACKAGE_DIR} 36fd4c99f2c33f946c92ed4604aa1b4ce87c5a75
RELEASE_TAG ${RELEASE_TAG}
SHA1_FILES ${SHA1_FILES}
SHA1_VALUES 57170bbed86dded8f44550ea0fabc9aa69c70d73)
SHA1_VALUES 2ec9118b6f91c9843800cb9892707e7a3c00c9dd)
else()
retrieve_package_file(${PACKAGE_NAME} ${PACKAGE_VERSION}
${FULL_LOCAL_EXTERNAL_PACKAGE_DIR} fac45b9682960e8e901d9df5bfc81c3995ac2c35
${FULL_LOCAL_EXTERNAL_PACKAGE_DIR} be9dc2de3c9888e59e72212e337cb8bcf59bdea0
RELEASE_TAG ${RELEASE_TAG}
SHA1_FILES ${SHA1_FILES}
SHA1_VALUES c8623552989b96ca9e72e8516205c71e2b051ad3)
SHA1_VALUES d2f3c159058738cf335070bd41172ab13567fcdc)
endif()
else()
# Ignore some warnings
Expand Down

0 comments on commit a10739c

Please sign in to comment.