Permalink
Browse files

changed alias for all repositories from "all" to "@all".

Signed-off-by:  <stefhen.hovland+github@gmail.com>
  • Loading branch information...
1 parent c5ec3ed commit 9e6ec43838a8521567e7dd5fa89796bd59c8ad47 @dinoboff dinoboff committed with Apr 12, 2009
Showing with 3 additions and 3 deletions.
  1. +1 −1 example.conf
  2. +1 −1 gitosis/mirror.py
  3. +1 −1 gitosis/test/test_mirror.py
View
@@ -54,7 +54,7 @@ daemon = yes
## Set a mirror for all repository
[mirror github]
-repos = all
+repos = @all
uri = git@github.com:res0nat0r/%s.git
## Add a mirror for the bar repository
View
@@ -72,7 +72,7 @@ def get_mirrors(config, git_name):
for section in mirror_sections:
try:
repos = config.get(section, 'repos')
- if repos == 'all' or git_name in repos.split():
+ if repos == '@all' or git_name in repos.split():
yield config.get(section, 'uri').strip() % git_name
except NoOptionError:
log.error('%s section is lacking the "repos" or "uri" settings.', section)
@@ -33,7 +33,7 @@ def test_get_mirrors_with_all():
eq(0, len(mirrors))
cfg.add_section('mirror github')
- cfg.set('mirror github', 'repos', 'all')
+ cfg.set('mirror github', 'repos', '@all')
cfg.set('mirror github', 'uri', 'git@github.com:res0nat0r/%s.git')
mirrors = list(mirror.get_mirrors(cfg, 'baz'))
ok('git@github.com:res0nat0r/baz.git' in mirrors)

0 comments on commit 9e6ec43

Please sign in to comment.