Skip to content

Commit

Permalink
Add a mirror configuration example
Browse files Browse the repository at this point in the history
Signed-off-by:  <stefhen.hovland+github@gmail.com>
  • Loading branch information
dinoboff authored and Unknown committed Jun 10, 2009
1 parent 9e6ec43 commit 2cf6458
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions example.conf
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ daemon = yes
# homelink = http://example.com/

## Set a mirror for all repository
## (all repositories with a post-receive hook
## running "gitosis-run-hook update-mirrors")
[mirror github]
repos = @all
uri = git@github.com:res0nat0r/%s.git
Expand Down
24 changes: 24 additions & 0 deletions mirror.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## Mirroring is possible for any repository with
## the gitosis default post-receive hooks.
## This hook need to run "gitosis-run-hook update-mirrors"

[gitosis]
## Create a repository alias
public = bar baz

## The public repositories have to be mirrored
## on a github account
[mirror github]
repos = @public
uri = git@github.com:alice/%s.git
## %s will be replaced by the repository name

[group admin]
members = alice
writable = gitosis

## The developpers have access some private repository
## and to all the public repositories
[group dev-team]
members = bob @admin
writable = foo @public

0 comments on commit 2cf6458

Please sign in to comment.