]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
Makefile: silence spurious error message
authorAlejandro Colomar <alx.manpages@gmail.com>
Mon, 9 May 2022 21:11:37 +0000 (23:11 +0200)
committerAlejandro Colomar <alx.manpages@gmail.com>
Mon, 9 May 2022 21:11:46 +0000 (23:11 +0200)
The following error is harmless and normal.  Ignore it.

$ sudo make install
fatal: unsafe repository ('/home/alx/src/linux/man-pages/man-pages' is owned by someone else)
To add an exception for this directory, call:

git config --global --add safe.directory /home/alx/src/linux/man-pages/man-pages

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Makefile

index fc85107536a93f322a2bab05aaf14a8e489ac475..312cd11f92357e6a529de5998062bd9c184e0d87 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -343,7 +343,7 @@ compression := gz xz
 dist        := $(foreach x,$(compression),dist-$(x))
 
 
-$(DISTFILE): $(shell git ls-files) | $$(@D)/.
+$(DISTFILE): $(shell git ls-files 2>/dev/null) | $$(@D)/.
        $(info TAR      $@)
        tar cf $@ -T /dev/null
        git ls-files \