]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Fix COPR builds
authorDavid Woodhouse <dwmw2@infradead.org>
Sat, 21 May 2022 12:35:35 +0000 (13:35 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Sat, 21 May 2022 12:35:35 +0000 (13:35 +0100)
These have recently started complaining that the git directory isn't owned
by the current user:

./mkspec.sh mingw-openconnect
fatal: unsafe repository ('/mnt/workdir-0bz7gifx/openconnect' is owned by someone else)

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
.copr/Makefile

index d83f8033a2a0986226be8aed999216cccc77d03c..67212f21ad7a1930a65be8c3cb5c44f7e04764c5 100644 (file)
@@ -10,6 +10,7 @@ TARGET=mingw-openconnect
 endif
 
 srpm: /usr/bin/git
+       git config --global --add safe.directory "*"
        ./mkspec.sh $(TARGET)
        set -x; if grep -q "global gitsnapshot 1" $(TARGET).spec; then \
                tarprefix=$$(sed -n '/^%global snapcommit /s/.* //p' $(TARGET).spec); \