public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Fabio Valentini <decathorpe@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-git2] epel10.2: Adapt tests for changes in libgit2 v1.9.4+
Date: Thu, 23 Jul 2026 20:47:36 GMT	[thread overview]
Message-ID: <178483965625.1.1518726273777327648.rpms-rust-git2-f5b59f44d1ff@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rust-git2
Branch : epel10.2
Commit : f5b59f44d1ffaecd51c3ed4a4dc543be527d8f2e
Author : Fabio Valentini <decathorpe@gmail.com>
Date   : 2026-07-23T22:46:51+02:00
Stats  : +56/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-git2/c/f5b59f44d1ffaecd51c3ed4a4dc543be527d8f2e?branch=epel10.2

Log:
Adapt tests for changes in libgit2 v1.9.4+

---
diff --git a/0001-Adapt-tests-for-relativeworktrees-extension-added-in.patch b/0001-Adapt-tests-for-relativeworktrees-extension-added-in.patch
new file mode 100644
index 0000000..382deb2
--- /dev/null
+++ b/0001-Adapt-tests-for-relativeworktrees-extension-added-in.patch
@@ -0,0 +1,53 @@
+From 243230c17a52f84457121c7339f4d31bb00f1a30 Mon Sep 17 00:00:00 2001
+From: Fabio Valentini <decathorpe@gmail.com>
+Date: Thu, 18 Jun 2026 19:45:23 +0200
+Subject: [PATCH] Adapt tests for relativeworktrees extension added in libgit2
+ v1.9.4
+
+---
+ tests/add_extensions.rs    | 2 ++
+ tests/get_extensions.rs    | 2 ++
+ tests/remove_extensions.rs | 1 +
+ 3 files changed, 5 insertions(+)
+
+diff --git a/tests/add_extensions.rs b/tests/add_extensions.rs
+index 3cafa60..bf14a25 100644
+--- a/tests/add_extensions.rs
++++ b/tests/add_extensions.rs
+@@ -22,6 +22,8 @@ fn test_add_extensions() -> Result<(), Error> {
+             Some("objectformat"),
+             // The preciousobjects extension was added in 1.9
+             Some("preciousobjects"),
++            // The relativeworktrees extension was added in 1.9.4
++            Some("relativeworktrees"),
+             // The worktreeconfig extension was added in 1.8
+             Some("worktreeconfig")
+         ]
+diff --git a/tests/get_extensions.rs b/tests/get_extensions.rs
+index db8e456..731d987 100644
+--- a/tests/get_extensions.rs
++++ b/tests/get_extensions.rs
+@@ -17,6 +17,8 @@ fn test_get_extensions() -> Result<(), Error> {
+             Some("objectformat"),
+             // The preciousobjects extension was added in 1.9
+             Some("preciousobjects"),
++            // The relativeworktrees extension was added in 1.9.4
++            Some("relativeworktrees"),
+             // The worktreeconfig extension was added in 1.8
+             Some("worktreeconfig")
+         ]
+diff --git a/tests/remove_extensions.rs b/tests/remove_extensions.rs
+index 5a3e21d..422cdf6 100644
+--- a/tests/remove_extensions.rs
++++ b/tests/remove_extensions.rs
+@@ -12,6 +12,7 @@ fn test_remove_extensions() -> Result<(), Error> {
+             "!noop",
+             "!objectformat",
+             "!preciousobjects",
++            "!relativeworktrees",
+             "!worktreeconfig",
+             "other",
+         ])?;
+-- 
+2.54.0
+

diff --git a/rust-git2.spec b/rust-git2.spec
index c9ef8bc..9675e16 100644
--- a/rust-git2.spec
+++ b/rust-git2.spec
@@ -13,6 +13,9 @@ License:        MIT OR Apache-2.0
 URL:            https://crates.io/crates/git2
 Source:         %{crates_source}
 
+# https://github.com/rust-lang/git2-rs/commit/6abfb6d
+Patch:          0001-Adapt-tests-for-relativeworktrees-extension-added-in.patch
+
 BuildRequires:  cargo-rpm-macros >= 24
 %if %{with check}
 BuildRequires:  /usr/bin/git

                 reply	other threads:[~2026-07-23 20:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178483965625.1.1518726273777327648.rpms-rust-git2-f5b59f44d1ff@fedoraproject.org \
    --to=decathorpe@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox