mirror of
https://github.com/git/git.git
synced 2026-03-13 10:23:30 +01:00
templates: Mark only hooks as not-executable.
Previously all files in the template directory were investigated whether they are scripts. But actually, we only want to disable the hooks, not any other scripts (but currently there are no others anyway). Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
This commit is contained in:
@@ -34,11 +34,8 @@ boilerplates.made : $(bpsrc)
|
||||
$(INSTALL) -d -m 755 blt/$$dir && \
|
||||
case "$$boilerplate" in \
|
||||
*--) ;; \
|
||||
*) if test -n "$$(sed -ne '/^#!\//p' -e '1q' < "$$boilerplate")"; then \
|
||||
cp -p "$$boilerplate" "blt/$${dst}$(NOEXECTEMPL)"; \
|
||||
else \
|
||||
cp -p "$$boilerplate" "blt/$$dst"; \
|
||||
fi ;; \
|
||||
hooks--*) cp -p $$boilerplate blt/$${dst}$(NOEXECTEMPL) ;; \
|
||||
*) cp -p $$boilerplate blt/$$dst ;; \
|
||||
esac || exit; \
|
||||
done && \
|
||||
date >$@
|
||||
|
||||
Reference in New Issue
Block a user