Skip to content

Commit

Permalink
rpm: drop the --remote argument from git-archive call
Browse files Browse the repository at this point in the history
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: fedora-copr/copr#3421

Reviewed-by: Pavel Březina <[email protected]>
(cherry picked from commit c1434c1)
  • Loading branch information
praiskup authored and pbrezina committed Oct 14, 2024
1 parent 7224465 commit 5a6cd13
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions contrib/fedora/make_srpm.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -x

# Authors:
# Lukas Slebodnik <[email protected]>
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5a6cd13

Please sign in to comment.