summaryrefslogtreecommitdiff
path: root/mirror.5
blob: 0bef2d96bc4b6a4155f31501a22c01ec767a94e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
.TH mirror 5 "2024-01-01"
.SH NAME
mirror \- file format for listing sources for git repository mirrors
.SH SYNTAX
Each file contains number of lines:
.P
.RS
.RI [ type ]
.I source
.RE
.P
Any leading whitespace is ignored. Lines that begin with
.B #
are ignored. Lines are split into
.I type
and
.I source
using regular shell word splitting mechanism. If first word is not recognized as a
.IR type ,
then it is assumed to be part of the
.I source
and gets prepended to the rest of the line with a single space character as a separator. Because of this behaviour it is
recommended to use an explicit
.I type
if
.I source
contains whitespace.
.SH SUPPORTED TYPES
.I Type
is recognized if it matches any of the following types. If it does not,
.B repo
is assumed.
.SS repo
Repository is mirrored directly from a
.IR source .
The
.I source
must be compatible with
.BR git-clone (1)
command.
.SS gitolite
First,
.I source
is queried assuming gitolite info command is available via SSH. Each repository that user has read permissions to is
then mirrored. Addresses of the repositories are generated by appending
.BI / path
to
.IR source.
The
.I source
must be compatible with both
.BR ssh (1)
and
.BR git-clone (1)
commands.
.SH SEE ALSO
.BR mirror (1),
.BR git-clone (1),
.BR ssh (1)