Permalink
Browse files

Be more precise when searching for repos

I had told everyone to set "gerrit.causes.com:29418" as their URL, but last
night discovered that there is an enormous speed penalty for going through
the netscreen and then the SSH tunnel from granite to gerrit, so I'm now
encouraging people to set "gerrit:29418" as their URL instead.

This change allows the git_hooks install task to detect both variants.

Related story:
  https://www.pivotaltracker.com/story/show/21246919
  ('Teach git_hooks to recognize both "gerrit" and "gerrit.causes.com" URLs')

Change-Id: Ia6aab59e2a39236c7ed2020520bbb365858e40da
Reviewed-on: https://gerrit.causes.com/1276
Tested-by: Greg Hurrell <greg@causes.com>
Reviewed-by: Lann Martin <lann@causes.com>
  • Loading branch information...
1 parent b9c117f commit f6ad2fa56eb46ca4967614fb9dddc0da7db1df81 Greg Hurrell committed with lann Nov 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 helper.rb
View
@@ -2,7 +2,7 @@ module Helper
DEFAULT_REPOS = ['causes']
DEFAULT_SRC_PATH = '~/src/'
GITHUB_ROOT = 'git@github.com:causes'
- GERRIT_REMOTE = 'gerrit.causes.com'
+ GERRIT_REMOTE = 'gerrit(.causes.com)?:29418'
HOOKS = Dir['hooks/*'].map{|path| path.split('/').last}
SCRIPTS = 'scripts/'

0 comments on commit f6ad2fa

Please sign in to comment.