From 5a6cd13e1b4e1da21fd0d7cef4ccfa1aa5e3e782 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Mon, 14 Oct 2024 07:27:40 +0200 Subject: [PATCH] rpm: drop the --remote argument from git-archive call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It seems that current (autumn 2024) git releases somehow dislike the use of `--remote=file://` when it applies the [safe] directory checks. The option doesn't seem to be useful though, so let's drop it to fix the Copr builds. Relates: https://github.com/fedora-copr/copr/issues/3421 Reviewed-by: Pavel Březina (cherry picked from commit c1434c1aee47247097cacc2d0f11f9a8c4e6284e) --- contrib/fedora/make_srpm.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contrib/fedora/make_srpm.sh b/contrib/fedora/make_srpm.sh index 669f7cc1473..6c8093257c9 100755 --- a/contrib/fedora/make_srpm.sh +++ b/contrib/fedora/make_srpm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -x # Authors: # Lukas Slebodnik @@ -169,7 +169,6 @@ NAME="$PACKAGE_NAME-$PACKAGE_VERSION" TARBALL="$RPMBUILD/SOURCES/$NAME.tar.gz" git archive --format=tar --prefix="$NAME"/ \ - --remote="file://$SRC_DIR" \ HEAD | gzip > "$TARBALL" # fallback to tar if git archive failed