summaryrefslogtreecommitdiffstats
path: root/build/git-hooks/pre-commit
diff options
context:
space:
mode:
authorraphael.kubo.da.costa@intel.com <raphael.kubo.da.costa@intel.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-30 20:23:41 +0000
committerraphael.kubo.da.costa@intel.com <raphael.kubo.da.costa@intel.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-30 20:23:41 +0000
commit2fc758c217db270c4c3aca375d9a56ef6fd902ae (patch)
treed4d655a5d2c9774df22f3a35524dd86de9398299 /build/git-hooks/pre-commit
parentc4621151c3a788adf2f4483e2f61d2780269259a (diff)
downloadchromium_src-2fc758c217db270c4c3aca375d9a56ef6fd902ae.zip
chromium_src-2fc758c217db270c4c3aca375d9a56ef6fd902ae.tar.gz
chromium_src-2fc758c217db270c4c3aca375d9a56ef6fd902ae.tar.bz2
Use sh instead of bash for the pre-commit hook.
The script looks portable enough, and using sh helps on systems without bash in that specific location. R=cmp@chromium.org,szager@chromium.org Review URL: https://chromiumcodereview.appspot.com/19238006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214425 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/git-hooks/pre-commit')
-rwxr-xr-xbuild/git-hooks/pre-commit2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/git-hooks/pre-commit b/build/git-hooks/pre-commit
index 3ea49c5..3391a77 100755
--- a/build/git-hooks/pre-commit
+++ b/build/git-hooks/pre-commit
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
submods=$(git diff-index --cached --ignore-submodules=dirty HEAD | grep -e '^:160000' -e '^:...... 160000' | xargs)
if test "$submods"; then