Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
da-liii committed Jan 16, 2024
1 parent da90315 commit ecace82
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
6 changes: 5 additions & 1 deletion src/Plugins/Git/git.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ libgit2_version () {

static void
show_git_last_error (int error) {
#if (LIBGIT2_VER_MAJOR == 0) && (LIBGIT2_VER_MINOR <= 27)
const git_error* e= giterr_last ();
#else
const git_error* e= git_error_last ();
debug_io << "libgit2 error " << error << "/" << e->klass << ": " << e->message
#endif
debug_io << "libgit2 error " << error // << "/" << e->klass << ": " << e->message
<< LF;
}

Expand Down
10 changes: 5 additions & 5 deletions xmake-requires.lock
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@
["libjpeg#31fecfc4"] = {
repo = {
branch = "master",
commit = "bdce2febf9d26219840fe93f2e6b9ff676d565f7",
commit = "4008de50367abe3554f52460fc5f09a744073cec",
url = "https://gitee.com/tboox/xmake-repo.git"
},
version = "1.5.2"
},
["libpng#31fecfc4"] = {
repo = {
branch = "master",
commit = "bdce2febf9d26219840fe93f2e6b9ff676d565f7",
commit = "4008de50367abe3554f52460fc5f09a744073cec",
url = "https://gitee.com/tboox/xmake-repo.git"
},
version = "1.6.36"
Expand All @@ -74,7 +74,7 @@
["openssl#31fecfc4"] = {
repo = {
branch = "master",
commit = "bdce2febf9d26219840fe93f2e6b9ff676d565f7",
commit = "4008de50367abe3554f52460fc5f09a744073cec",
url = "https://gitee.com/tboox/xmake-repo.git"
},
version = "1.1.1d"
Expand All @@ -90,7 +90,7 @@
["pkg-config#31fecfc4"] = {
repo = {
branch = "master",
commit = "bdce2febf9d26219840fe93f2e6b9ff676d565f7",
commit = "4008de50367abe3554f52460fc5f09a744073cec",
url = "https://gitee.com/tboox/xmake-repo.git"
},
version = "0.29"
Expand All @@ -114,7 +114,7 @@
["zlib#31fecfc4"] = {
repo = {
branch = "master",
commit = "bdce2febf9d26219840fe93f2e6b9ff676d565f7",
commit = "4008de50367abe3554f52460fc5f09a744073cec",
url = "https://gitee.com/tboox/xmake-repo.git"
},
version = "1.2.11"
Expand Down
2 changes: 1 addition & 1 deletion xmake/packages.lua
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function add_requires_of_mogan()
end

-- package: libgit2
if is_plat ("linux") and using_apt() and (not (linuxos.name() == "uos")) then
if is_plat ("linux") and using_apt() then
add_requires("apt::libgit2-dev", {alias="libgit2"})
elseif not is_plat("wasm") then
add_requires("libgit2 "..LIBGIT2_VERSION, {system=false})
Expand Down

0 comments on commit ecace82

Please sign in to comment.