Commit a7d7d7ec authored by szager@chromium.org's avatar szager@chromium.org

Explicitly exec hooks inside a shell.

We don't want to permit the execution of an arbitrary binary.

TBR=ilevy@chromium.org
BUG=

Review URL: https://codereview.chromium.org/21012004

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@214193 0039d316-1c4b-4281-b951-d872f2087c98
parent 05028418
#!/bin/sh
[ -e "build/git-hooks/applypatch-msg" ] && exec "build/git-hooks/applypatch-msg" "$@"
[ -e "build/git-hooks/applypatch-msg" ] && exec sh "build/git-hooks/applypatch-msg" "$@"
exit 0
#!/bin/sh
[ -e "build/git-hooks/post-applypatch" ] && exec "build/git-hooks/post-applypatch" "$@"
[ -e "build/git-hooks/post-applypatch" ] && exec sh "build/git-hooks/post-applypatch" "$@"
exit 0
#!/bin/sh
[ -e "build/git-hooks/post-checkout" ] && exec "build/git-hooks/post-checkout" "$@"
[ -e "build/git-hooks/post-checkout" ] && exec sh "build/git-hooks/post-checkout" "$@"
exit 0
#!/bin/sh
[ -e "build/git-hooks/post-commit" ] && exec "build/git-hooks/post-commit" "$@"
[ -e "build/git-hooks/post-commit" ] && exec sh "build/git-hooks/post-commit" "$@"
exit 0
#!/bin/sh
[ -e "build/git-hooks/post-merge" ] && exec "build/git-hooks/post-merge" "$@"
[ -e "build/git-hooks/post-merge" ] && exec sh "build/git-hooks/post-merge" "$@"
exit 0
#!/bin/sh
[ -e "build/git-hooks/post-update" ] && exec "build/git-hooks/post-update" "$@"
[ -e "build/git-hooks/post-update" ] && exec sh "build/git-hooks/post-update" "$@"
exit 0
#!/bin/sh
[ -e "build/git-hooks/pre-applypatch" ] && exec "build/git-hooks/pre-applypatch" "$@"
[ -e "build/git-hooks/pre-applypatch" ] && exec sh "build/git-hooks/pre-applypatch" "$@"
exit 0
#!/bin/sh
[ -e "build/git-hooks/pre-auto-gc" ] && exec "build/git-hooks/pre-auto-gc" "$@"
[ -e "build/git-hooks/pre-auto-gc" ] && exec sh "build/git-hooks/pre-auto-gc" "$@"
exit 0
#!/bin/sh
[ -e "build/git-hooks/pre-commit" ] && exec "build/git-hooks/pre-commit" "$@"
[ -e "build/git-hooks/pre-commit" ] && exec sh "build/git-hooks/pre-commit" "$@"
exit 0
#!/bin/sh
[ -e "build/git-hooks/pre-rebase" ] && exec "build/git-hooks/pre-rebase" "$@"
[ -e "build/git-hooks/pre-rebase" ] && exec sh "build/git-hooks/pre-rebase" "$@"
exit 0
#!/bin/sh
[ -e "build/git-hooks/prepare-commit-msg" ] && exec "build/git-hooks/prepare-commit-msg" "$@"
[ -e "build/git-hooks/prepare-commit-msg" ] && exec sh "build/git-hooks/prepare-commit-msg" "$@"
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment