Add gclient hook that checks local git configuration.

It will also verify committers can commit by attempting to push to
a test git repository. It will run only once (or rather once per git
configuration), so it shouldn't significantly increase runhooks
duration.

[email protected]
BUG=399054
NOTRY=true

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

Cr-Commit-Position: refs/heads/master@{#290653}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290653 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/DEPS b/DEPS
index d35b301..4da5d307 100644
--- a/DEPS
+++ b/DEPS
@@ -820,4 +820,16 @@
     "pattern": ".",
     "action": ["python", "src/build/gyp_chromium"],
   },
+  {
+    # Verify committers' ~/.netc, gclient and git are properly configured for
+    # write access to the git repo. To be removed sometime after Chrome to git
+    # migration completes (let's say Sep 1 2014).
+    "name": "check_git_config",
+    "pattern": ".",
+    "action": [
+        "python",
+        "src/tools/check_git_config.py",
+        "--running-as-hook",
+    ],
+  },
 ]