Commit 08218ed6 authored by ilevy@chromium.org's avatar ilevy@chromium.org

Revert 214177 "Use plain sh instead of bash in the git template ..."

> Use plain sh instead of bash in the git template hooks.
> 
> The scripts are simple enough and should work fine under any POSIX shell,
> which is particularly helpful when one is using `gclient sync' on a platform
> that does not have /bin/bash (ie. it's installed in another location or not
> present at all), since the hooks are automatically added to the git
> checkouts.
> 
> While here, just `exec' the scripts directly instead of invoking another
> shell by hand and remove the redundant `exit 0' lines.
> 
> R=cmp@chromium.org,dpranke@chromium.org,szager@chromium.org

TBR=raphael.kubo.da.costa@intel.com

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@214178 0039d316-1c4b-4281-b951-d872f2087c98
parent 2666f735
#!/bin/sh
#!/bin/bash
[ -e "build/git-hooks/applypatch-msg" ] && exec "build/git-hooks/applypatch-msg" "$@"
[ -e "build/git-hooks/applypatch-msg" ] && exec bash "build/git-hooks/applypatch-msg" "$@"
exit 0
#!/bin/sh
#!/bin/bash
[ -e "build/git-hooks/post-applypatch" ] && exec "build/git-hooks/post-applypatch" "$@"
[ -e "build/git-hooks/post-applypatch" ] && exec bash "build/git-hooks/post-applypatch" "$@"
exit 0
#!/bin/sh
#!/bin/bash
[ -e "build/git-hooks/post-checkout" ] && exec "build/git-hooks/post-checkout" "$@"
[ -e "build/git-hooks/post-checkout" ] && exec bash "build/git-hooks/post-checkout" "$@"
exit 0
#!/bin/sh
#!/bin/bash
[ -e "build/git-hooks/post-commit" ] && exec "build/git-hooks/post-commit" "$@"
[ -e "build/git-hooks/post-commit" ] && exec bash "build/git-hooks/post-commit" "$@"
exit 0
#!/bin/sh
#!/bin/bash
[ -e "build/git-hooks/post-merge" ] && exec "build/git-hooks/post-merge" "$@"
[ -e "build/git-hooks/post-merge" ] && exec bash "build/git-hooks/post-merge" "$@"
exit 0
#!/bin/sh
#!/bin/bash
[ -e "build/git-hooks/post-update" ] && exec "build/git-hooks/post-update" "$@"
[ -e "build/git-hooks/post-update" ] && exec bash "build/git-hooks/post-update" "$@"
exit 0
#!/bin/sh
#!/bin/bash
[ -e "build/git-hooks/pre-applypatch" ] && exec "build/git-hooks/pre-applypatch" "$@"
[ -e "build/git-hooks/pre-applypatch" ] && exec bash "build/git-hooks/pre-applypatch" "$@"
exit 0
#!/bin/sh
#!/bin/bash
[ -e "build/git-hooks/pre-auto-gc" ] && exec "build/git-hooks/pre-auto-gc" "$@"
[ -e "build/git-hooks/pre-auto-gc" ] && exec bash "build/git-hooks/pre-auto-gc" "$@"
exit 0
#!/bin/sh
#!/bin/bash
[ -e "build/git-hooks/pre-commit" ] && exec "build/git-hooks/pre-commit" "$@"
[ -e "build/git-hooks/pre-commit" ] && exec bash "build/git-hooks/pre-commit" "$@"
exit 0
#!/bin/sh
#!/bin/bash
[ -e "build/git-hooks/pre-rebase" ] && exec "build/git-hooks/pre-rebase" "$@"
[ -e "build/git-hooks/pre-rebase" ] && exec bash "build/git-hooks/pre-rebase" "$@"
exit 0
#!/bin/sh
#!/bin/bash
[ -e "build/git-hooks/prepare-commit-msg" ] && exec "build/git-hooks/prepare-commit-msg" "$@"
[ -e "build/git-hooks/prepare-commit-msg" ] && exec bash "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