Install templates with the user and group of the installing personality
authorJohannes Sixt <johannes.sixt@telecom.at>
Wed, 20 Aug 2008 15:36:25 +0000 (17:36 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 Aug 2008 23:01:45 +0000 (16:01 -0700)
If 'make install' was run with sufficient privileges, then the installed
templates, which are copied using 'tar', would receive the user and group
of whoever built git. This instructs 'tar' to ignore the user and group
that are recorded in the archive.

Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
templates/Makefile

index 9f3f1fc..cc3fc30 100644 (file)
@@ -48,4 +48,4 @@ clean:
 install: all
        $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(template_instdir_SQ)'
        (cd blt && $(TAR) cf - .) | \
-       (cd '$(DESTDIR_SQ)$(template_instdir_SQ)' && umask 022 && $(TAR) xf -)
+       (cd '$(DESTDIR_SQ)$(template_instdir_SQ)' && umask 022 && $(TAR) xfo -)