summaryrefslogtreecommitdiff
path: root/gitolite-sync.conf.in
blob: 3ba06be373589323c9b5f8e86f70a3b4f40cf7b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

# this regex must match the to-be-synchronized remotes (or their url)
remote_regex='[@.]eckner\.net:'

# these directories contain the to-be-synchronized repositories
repository_dirs=(
  $(
    getent passwd #GITUSER# \
    | cut -d: -f6 \
    | sed 's,$,/repositories,'
  )
)

# name and path of default remote
default_remote_name='ecknernet'
default_remote_path_substitution='
  s#^'"${repository_dirs[0]}"'#gitolite@eckner.net:#
'