From: Johannes Schindelin Date: Fri, 29 Feb 2008 01:11:03 GMT Subject: Re: [PATCH 19/40] Windows: Change the name of hook scripts to make them not executable. Message-ID: In-Reply-To: <200802282148.47485.johannes.sixt@telecom.at> Hi, On Thu, 28 Feb 2008, Johannes Sixt wrote: > 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