Re: [PATCH 19/40] Windows: Change the name of hook scripts to make them not executable.
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Feb 29, 2008, 01:11 UTC
- Message-ID
- <alpine.LSU.1.00.0802290110320.22527@racer.site>
- In-Reply-To
- <200802282148.47485.johannes.sixt@telecom.at>
Hi,
On Thu, 28 Feb 2008, Johannes Sixt wrote:
Show 12 quoted lines
> On Thursday 28 February 2008 16:20, Johannes Schindelin wrote:
> > On Wed, 27 Feb 2008, Johannes Sixt wrote:
> > > - *) cp $$boilerplate blt/$$dst ;; \
> > > + *) if test -n "$$(sed -ne '/^#!\//p' -e '1q' < "$$boilerplate")"; then
> > > \ + cp "$$boilerplate" "blt/$${dst}$(NOEXECTEMPL)"; \
> > > + else \
> > > + cp "$$boilerplate" "blt/$$dst"; \
> > > + fi ;; \
> >
> > Why not just append .noexec to all of the hooks?
>
> Because some of the files are not hooks.Then you have to make sure even more urgently that only the hooks are treated that way.
Ciao, Dscho