Chromium Code Reviews

Side by Side Diff: git-templates/hooks/pre-commit

Issue 21012004: Explicitly exec hooks inside a shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « git-templates/hooks/pre-auto-gc ('k') | git-templates/hooks/pre-rebase » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 2
3 [ -e "build/git-hooks/pre-commit" ] && exec "build/git-hooks/pre-commit" "$@" 3 [ -e "build/git-hooks/pre-commit" ] && exec sh "build/git-hooks/pre-commit" "$@"
4 exit 0 4 exit 0
OLDNEW
« no previous file with comments | « git-templates/hooks/pre-auto-gc ('k') | git-templates/hooks/pre-rebase » ('j') | no next file with comments »

Powered by Google App Engine