This website works better with JavaScript.
Explore
Help
Register
Sign In
aiden
/
depot_tools
mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools
Watch
1
Star
0
Fork
You've already forked depot_tools
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
e9373d6e92
main
chrome/4147
chrome/3987
chrome/3865
chrome/3904
infra/config
Branches
Tags
${ item.name }
Create tag
${ searchTerm }
Create branch
${ searchTerm }
from 'e9373d6e92'
${ noResults }
depot_tools
/
git-templates
/
hooks
/
pre-rebase
5 lines
99 B
Plaintext
Raw
Normal View
History
Unescape
Escape
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 Review URL: https://chromiumcodereview.appspot.com/19278004 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@214181 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
#!/bin/sh
git template files for chromium checkouts. To be used in conjunction with the --template argument to git-clone. The hooks all redirect to build/git-hooks, which are files under revision control. This allows us to version the hooks along with the source code. TBR=mmoss@chromium.org,cmp@chromium.org Review URL: https://codereview.chromium.org/11689005 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@174738 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
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
12 years ago
[ -e "build/git-hooks/pre-rebase" ] && exec sh "build/git-hooks/pre-rebase" "$@"
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
12 years ago
exit 0