Revert "Change the name of hook scripts to make them not executable by default."

This reverts commits 13cae476, bdb6d4ec, daabe66f. They are not necessary
anymore, because the sample hooks now have a .sample postfix.
This commit is contained in:
Johannes Sixt
2008-07-02 09:03:53 +02:00
parent 974a77a4b2
commit dcaceb0a27
2 changed files with 1 additions and 5 deletions

View File

@@ -743,7 +743,6 @@ ifneq (,$(findstring MINGW,$(uname_S)))
COMPAT_OBJS += compat/mingw.o compat/fnmatch.o compat/regex.o
EXTLIBS += -lws2_32
X = .exe
NOEXECTEMPL = .noexec
template_dir = ../share/git-core/templates/
ETC_GITCONFIG = ../etc/gitconfig
endif
@@ -1058,7 +1057,7 @@ ifndef NO_TCLTK
$(QUIET_SUBDIR0)gitk-git $(QUIET_SUBDIR1) all
endif
$(QUIET_SUBDIR0)perl $(QUIET_SUBDIR1) PERL_PATH='$(PERL_PATH_SQ)' prefix='$(prefix_SQ)' all
$(QUIET_SUBDIR0)templates $(QUIET_SUBDIR1) NOEXECTEMPL='$(NOEXECTEMPL)'
$(QUIET_SUBDIR0)templates $(QUIET_SUBDIR1)
strip: $(PROGRAMS) git$X
$(STRIP) $(STRIP_OPTS) $(PROGRAMS) git$X

View File

@@ -10,8 +10,6 @@ RM ?= rm -f
prefix ?= $(HOME)
template_instdir ?= $(prefix)/share/git-core/templates
# DESTDIR=
# set NOEXECTEMPL to non-empty to change the names of hook scripts
# so that the tools will not find them
# Shell quote (do not use $(call) to accommodate ancient setups);
DESTDIR_SQ = $(subst ','\'',$(DESTDIR))
@@ -34,7 +32,6 @@ boilerplates.made : $(bpsrc)
$(INSTALL) -d -m 755 blt/$$dir && \
case "$$boilerplate" in \
*--) ;; \
hooks--*) cp -p $$boilerplate blt/$${dst}$(NOEXECTEMPL) ;; \
*) cp -p $$boilerplate blt/$$dst ;; \
esac || exit; \
done && \