Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

Signed-off-by:  <stefhen.hovland+github@gmail.com>
  • Loading branch information...
commit 9e6ec43838a8521567e7dd5fa89796bd59c8ad47 1 parent c5ec3ed
@dinoboff dinoboff authored committed
View
2  example.conf
@@ -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
2  gitosis/mirror.py
@@ -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)
View
2  gitosis/test/test_mirror.py
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.