summaryrefslogtreecommitdiffstats
path: root/Utilities/GitSetup/setup-hooks
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-11-30 19:55:34 (GMT)
committerBrad King <brad.king@kitware.com>2017-11-30 19:55:34 (GMT)
commit5cb64508a3c2c17f3a8c798d60ad426e286cf39e (patch)
treeb4892446a7e665c27cdac9c4e258e26f26eeba96 /Utilities/GitSetup/setup-hooks
parentcbd37fbec37b7fdd05925c46f2d252ad368ebe76 (diff)
parentf223a7caf494949c241133b7a7a1408738d6b376 (diff)
downloadCMake-5cb64508a3c2c17f3a8c798d60ad426e286cf39e.zip
CMake-5cb64508a3c2c17f3a8c798d60ad426e286cf39e.tar.gz
CMake-5cb64508a3c2c17f3a8c798d60ad426e286cf39e.tar.bz2
Merge branch 'upstream-GitSetup' into update-gitsetup
* upstream-GitSetup: GitSetup 2017-10-26 (1639317d)
Diffstat (limited to 'Utilities/GitSetup/setup-hooks')
-rwxr-xr-xUtilities/GitSetup/setup-hooks4
1 files changed, 2 insertions, 2 deletions
diff --git a/Utilities/GitSetup/setup-hooks b/Utilities/GitSetup/setup-hooks
index ca07712..6a17b10 100755
--- a/Utilities/GitSetup/setup-hooks
+++ b/Utilities/GitSetup/setup-hooks
@@ -26,7 +26,7 @@
# hooks.url = Repository URL publishing "hooks" branch
# hooks.branch = Repository branch instead of "hooks"
-egrep-q() {
+egrep_q() {
egrep "$@" >/dev/null 2>/dev/null
}
@@ -42,7 +42,7 @@ if url=$(git config --get hooks.url); then
# Fetch hooks from locally configured repository.
branch=$(git config hooks.branch || echo hooks)
elif git for-each-ref refs/remotes/origin/hooks 2>/dev/null |
- egrep-q 'refs/remotes/origin/hooks$'; then
+ egrep_q 'refs/remotes/origin/hooks$'; then
# Use hooks cloned from origin.
url=.. && branch=remotes/origin/hooks
elif url=$(git config -f config --get hooks.url); then