Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libgit2 for openSUSE:Factory checked in at 2022-03-23 20:15:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libgit2 (Old) and /work/SRC/openSUSE:Factory/.libgit2.new.25692 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libgit2" Wed Mar 23 20:15:26 2022 rev:48 rq:963469 version:1.4.2 Changes: -------- --- /work/SRC/openSUSE:Factory/libgit2/libgit2.changes 2022-02-23 16:26:12.899508325 +0100 +++ /work/SRC/openSUSE:Factory/.libgit2.new.25692/libgit2.changes 2022-03-23 20:15:34.826367821 +0100 @@ -1,0 +2,6 @@ +Thu Mar 17 19:27:04 UTC 2022 - Andreas Stieger <andreas.stie...@gmx.de> + +- update to 1.4.2: + * remote: do store the update_tips callback error value + +------------------------------------------------------------------- Old: ---- libgit2-1.4.1.tar.gz New: ---- libgit2-1.4.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libgit2.spec ++++++ --- /var/tmp/diff_new_pack.FdSsMk/_old 2022-03-23 20:15:35.550368197 +0100 +++ /var/tmp/diff_new_pack.FdSsMk/_new 2022-03-23 20:15:35.554368198 +0100 @@ -19,7 +19,7 @@ %define sover 1_4 Name: libgit2 -Version: 1.4.1 +Version: 1.4.2 Release: 0 Summary: C git library License: GPL-2.0-only WITH GCC-exception-2.0 ++++++ libgit2-1.4.1.tar.gz -> libgit2-1.4.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libgit2-1.4.1/docs/changelog.md new/libgit2-1.4.2/docs/changelog.md --- old/libgit2-1.4.1/docs/changelog.md 2022-02-18 15:29:55.000000000 +0100 +++ new/libgit2-1.4.2/docs/changelog.md 2022-02-26 20:50:04.000000000 +0100 @@ -1,3 +1,20 @@ +v1.4.2 +------ + +This is a bugfix release with the following changes: + +* remote: do store the update_tips callback error value by @carlosmn in https://github.com/libgit2/libgit2/pull/6226 +* win32: `find_system_dirs` does not return `GIT_ENOTFOUND` by @ethomson in https://github.com/libgit2/libgit2/pull/6228 + +v1.4.1 +------ + +This is a bugfix release with the following changes: + +* xdiff: use xdl_free not free by @ethomson +* cmake: Fix package name for system http-parser by @mgorny +* Free parent and ref in lg2_commit before returning by @apnadkarni + v1.4 ---- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libgit2-1.4.1/include/git2/version.h new/libgit2-1.4.2/include/git2/version.h --- old/libgit2-1.4.1/include/git2/version.h 2022-02-18 15:29:55.000000000 +0100 +++ new/libgit2-1.4.2/include/git2/version.h 2022-02-26 20:50:04.000000000 +0100 @@ -7,10 +7,10 @@ #ifndef INCLUDE_git_version_h__ #define INCLUDE_git_version_h__ -#define LIBGIT2_VERSION "1.4.1" +#define LIBGIT2_VERSION "1.4.2" #define LIBGIT2_VER_MAJOR 1 #define LIBGIT2_VER_MINOR 4 -#define LIBGIT2_VER_REVISION 1 +#define LIBGIT2_VER_REVISION 2 #define LIBGIT2_VER_PATCH 0 #define LIBGIT2_SOVERSION "1.4" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libgit2-1.4.1/src/remote.c new/libgit2-1.4.2/src/remote.c --- old/libgit2-1.4.1/src/remote.c 2022-02-18 15:29:55.000000000 +0100 +++ new/libgit2-1.4.2/src/remote.c 2022-02-26 20:50:04.000000000 +0100 @@ -1852,7 +1852,7 @@ } if (callbacks && callbacks->update_tips != NULL && - callbacks->update_tips(refname.ptr, &old, &head->oid, callbacks->payload) < 0) + (error = callbacks->update_tips(refname.ptr, &old, &head->oid, callbacks->payload)) < 0) git_error_set_after_callback_function(error, "git_remote_fetch"); done: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libgit2-1.4.1/src/win32/findfile.c new/libgit2-1.4.2/src/win32/findfile.c --- old/libgit2-1.4.1/src/win32/findfile.c 2022-02-18 15:29:55.000000000 +0100 +++ new/libgit2-1.4.2/src/win32/findfile.c 2022-02-26 20:50:04.000000000 +0100 @@ -222,7 +222,7 @@ has_regdir = (find_sysdir_in_registry(regdir) == 0); if (!has_pathdir && !has_regdir) - return GIT_ENOTFOUND; + return 0; /* * Usually the git in the path is the same git in the registry, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libgit2-1.4.1/tests/network/fetchlocal.c new/libgit2-1.4.2/tests/network/fetchlocal.c --- old/libgit2-1.4.1/tests/network/fetchlocal.c 2022-02-18 15:29:55.000000000 +0100 +++ new/libgit2-1.4.2/tests/network/fetchlocal.c 2022-02-26 20:50:04.000000000 +0100 @@ -509,3 +509,44 @@ git_remote_free(origin); git_repository_free(repo); } + +static int update_tips_error(const char *ref, const git_oid *old, const git_oid *new, void *data) +{ + int *callcount = (int *) data; + + GIT_UNUSED(ref); + GIT_UNUSED(old); + GIT_UNUSED(new); + + (*callcount)++; + + return -1; +} + +void test_network_fetchlocal__update_tips_error_is_propagated(void) +{ + git_repository *repo; + git_reference_iterator *iterator; + git_reference *ref; + git_remote *remote; + git_fetch_options options = GIT_FETCH_OPTIONS_INIT; + int callcount = 0; + + cl_git_pass(git_repository_init(&repo, "foo.git", true)); + cl_set_cleanup(cleanup_local_repo, "foo.git"); + + cl_git_pass(git_remote_create_with_fetchspec(&remote, repo, "origin", cl_git_fixture_url("testrepo.git"), "+refs/heads/*:refs/remotes/update-tips/*")); + + options.callbacks.update_tips = update_tips_error; + options.callbacks.payload = &callcount; + + cl_git_fail(git_remote_fetch(remote, NULL, &options, NULL)); + cl_assert_equal_i(1, callcount); + + cl_git_pass(git_reference_iterator_glob_new(&iterator, repo, "refs/remotes/update-tips/**/")); + cl_assert_equal_i(GIT_ITEROVER, git_reference_next(&ref, iterator)); + + git_reference_iterator_free(iterator); + git_remote_free(remote); + git_repository_free(repo); +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libgit2-1.4.1/tests/win32/systemdir.c new/libgit2-1.4.2/tests/win32/systemdir.c --- old/libgit2-1.4.1/tests/win32/systemdir.c 2022-02-18 15:29:55.000000000 +0100 +++ new/libgit2-1.4.2/tests/win32/systemdir.c 2022-02-26 20:50:04.000000000 +0100 @@ -326,3 +326,13 @@ git_config_free(cfg); #endif } + +void test_win32_systemdir__no_git_installed(void) +{ +#ifdef GIT_WIN32 + git_str out = GIT_STR_INIT; + + cl_git_pass(git_win32__find_system_dirs(&out, "etc")); + cl_assert_equal_s(out.ptr, ""); +#endif +}