Browse code

Allow custom local code

Robert Cranston authored on 13/04/2020 18:15:30
Showing 1 changed files
... ...
@@ -83,7 +83,7 @@
83 83
         # or you can use this, which lets you put everything in a subdirectory
84 84
         # called "local" in your gitolite-admin repo.  For a SECURITY WARNING
85 85
         # on this, see http://gitolite.com/gitolite/non-core.html#pushcode
86
-        # LOCAL_CODE                =>  "$rc{GL_ADMIN_BASE}/local",
86
+        LOCAL_CODE                =>  "$rc{GL_ADMIN_BASE}/local",
87 87
 
88 88
     # ------------------------------------------------------------------
89 89
 
Browse code

Prepare for integration with a webserver

Robert Cranston authored on 17/11/2019 11:34:33
Showing 1 changed files
... ...
@@ -18,7 +18,7 @@
18 18
 
19 19
     # default umask gives you perms of '0700'; see the rc file docs for
20 20
     # how/why you might change this
21
-    UMASK                           =>  0077,
21
+    UMASK                           =>  0027,
22 22
 
23 23
     # look for "git-config" in the documentation
24 24
     GIT_CONFIG_KEYS                 =>  '',
... ...
@@ -165,7 +165,7 @@
165 165
             # 'upstream',
166 166
 
167 167
             # updates 'description' file instead of 'gitweb.description' config item
168
-            # 'cgit',
168
+            'cgit',
169 169
 
170 170
             # allow repo-specific hooks to be added
171 171
             # 'repo-specific-hooks',
Browse code

Enable `symbolic-ref` command

Robert Cranston authored on 23/01/2021 20:35:26
Showing 1 changed files
... ...
@@ -107,6 +107,7 @@
107 107
             # 'readme',
108 108
             # 'sskm',
109 109
             'D',
110
+            'symbolic-ref',
110 111
 
111 112
         # These FEATURES are enabled by default.
112 113
 
Browse code

Be more explicit about user created repo creation and deletion

Robert Cranston authored on 17/11/2019 11:45:00
Showing 1 changed files
... ...
@@ -101,12 +101,12 @@
101 101
             'writable',
102 102
 
103 103
             # Uncomment or add new commands here.
104
-            # 'create',
104
+            'create',
105 105
             # 'fork',
106 106
             # 'mirror',
107 107
             # 'readme',
108 108
             # 'sskm',
109
-            # 'D',
109
+            'D',
110 110
 
111 111
         # These FEATURES are enabled by default.
112 112
 
... ...
@@ -130,7 +130,7 @@
130 130
             # prevent wild repos auto-create on fetch/clone
131 131
             # 'no-create-on-read',
132 132
             # no auto-create at all (don't forget to enable the 'create' command!)
133
-            # 'no-auto-create',
133
+            'no-auto-create',
134 134
 
135 135
             # access a repo by another (possibly legacy) name
136 136
             # 'Alias',
Browse code

Allow personal branches on user created repos

Robert Cranston authored on 23/01/2021 15:48:21
Showing 1 changed files
... ...
@@ -48,6 +48,7 @@
48 48
         READERS                     =>  1,
49 49
         WRITERS                     =>  1,
50 50
         OWNERS                      =>  1,
51
+        USERS                       =>  1,
51 52
     },
52 53
 
53 54
     # enable caching (currently only Redis).  PLEASE RTFM BEFORE USING!!!
Browse code

Allow multiple owners on user created repos

Robert Cranston authored on 23/01/2021 14:16:24
Showing 1 changed files
... ...
@@ -39,12 +39,15 @@
39 39
     # syslog 'facility': defaults to 'local0', uncomment if needed.  For example:
40 40
     # LOG_FACILITY                  => 'local4',
41 41
 
42
+    OWNER_ROLENAME => 'OWNERS',
43
+
42 44
     # roles.  add more roles (like MANAGER, TESTER, ...) here.
43 45
     #   WARNING: if you make changes to this hash, you MUST run 'gitolite
44 46
     #   compile' afterward, and possibly also 'gitolite trigger POST_COMPILE'
45 47
     ROLES => {
46 48
         READERS                     =>  1,
47 49
         WRITERS                     =>  1,
50
+        OWNERS                      =>  1,
48 51
     },
49 52
 
50 53
     # enable caching (currently only Redis).  PLEASE RTFM BEFORE USING!!!
Browse code

Enable kindergarten mode

Robert Cranston authored on 23/01/2021 20:05:44
Showing 1 changed files
... ...
@@ -187,7 +187,7 @@
187 187
         # Kindergarten mode
188 188
 
189 189
             # disallow various things that sensible people shouldn't be doing anyway
190
-            # 'Kindergarten',
190
+            'Kindergarten',
191 191
     ],
192 192
 
193 193
 );
Browse code

Use default gitolite.rc (from v3.6.7 to at least v3.6.12)

Robert Cranston authored on 22/01/2021 23:14:17
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,202 @@
1
+# configuration variables for gitolite
2
+
3
+# This file is in perl syntax.  But you do NOT need to know perl to edit it --
4
+# just mind the commas, use single quotes unless you know what you're doing,
5
+# and make sure the brackets and braces stay matched up!
6
+
7
+# (Tip: perl allows a comma after the last item in a list also!)
8
+
9
+# HELP for commands can be had by running the command with "-h".
10
+
11
+# HELP for all the other FEATURES can be found in the documentation (look for
12
+# "list of non-core programs shipped with gitolite" in the master index) or
13
+# directly in the corresponding source file.
14
+
15
+%RC = (
16
+
17
+    # ------------------------------------------------------------------
18
+
19
+    # default umask gives you perms of '0700'; see the rc file docs for
20
+    # how/why you might change this
21
+    UMASK                           =>  0077,
22
+
23
+    # look for "git-config" in the documentation
24
+    GIT_CONFIG_KEYS                 =>  '',
25
+
26
+    # comment out if you don't need all the extra detail in the logfile
27
+    LOG_EXTRA                       =>  1,
28
+    # logging options
29
+    # 1. leave this section as is for 'normal' gitolite logging (default)
30
+    # 2. uncomment this line to log ONLY to syslog:
31
+    # LOG_DEST                      => 'syslog',
32
+    # 3. uncomment this line to log to syslog and the normal gitolite log:
33
+    # LOG_DEST                      => 'syslog,normal',
34
+    # 4. prefixing "repo-log," to any of the above will **also** log just the
35
+    #    update records to "gl-log" in the bare repo directory:
36
+    # LOG_DEST                      => 'repo-log,normal',
37
+    # LOG_DEST                      => 'repo-log,syslog',
38
+    # LOG_DEST                      => 'repo-log,syslog,normal',
39
+    # syslog 'facility': defaults to 'local0', uncomment if needed.  For example:
40
+    # LOG_FACILITY                  => 'local4',
41
+
42
+    # roles.  add more roles (like MANAGER, TESTER, ...) here.
43
+    #   WARNING: if you make changes to this hash, you MUST run 'gitolite
44
+    #   compile' afterward, and possibly also 'gitolite trigger POST_COMPILE'
45
+    ROLES => {
46
+        READERS                     =>  1,
47
+        WRITERS                     =>  1,
48
+    },
49
+
50
+    # enable caching (currently only Redis).  PLEASE RTFM BEFORE USING!!!
51
+    # CACHE                         =>  'Redis',
52
+
53
+    # ------------------------------------------------------------------
54
+
55
+    # rc variables used by various features
56
+
57
+    # the 'info' command prints this as additional info, if it is set
58
+        # SITE_INFO                 =>  'Please see http://blahblah/gitolite for more help',
59
+
60
+    # the CpuTime feature uses these
61
+        # display user, system, and elapsed times to user after each git operation
62
+        # DISPLAY_CPU_TIME          =>  1,
63
+        # display a warning if total CPU times (u, s, cu, cs) crosses this limit
64
+        # CPU_TIME_WARN_LIMIT       =>  0.1,
65
+
66
+    # the Mirroring feature needs this
67
+        # HOSTNAME                  =>  "foo",
68
+
69
+    # TTL for redis cache; PLEASE SEE DOCUMENTATION BEFORE UNCOMMENTING!
70
+        # CACHE_TTL                 =>  600,
71
+
72
+    # ------------------------------------------------------------------
73
+
74
+    # suggested locations for site-local gitolite code (see cust.html)
75
+
76
+        # this one is managed directly on the server
77
+        # LOCAL_CODE                =>  "$ENV{HOME}/local",
78
+
79
+        # or you can use this, which lets you put everything in a subdirectory
80
+        # called "local" in your gitolite-admin repo.  For a SECURITY WARNING
81
+        # on this, see http://gitolite.com/gitolite/non-core.html#pushcode
82
+        # LOCAL_CODE                =>  "$rc{GL_ADMIN_BASE}/local",
83
+
84
+    # ------------------------------------------------------------------
85
+
86
+    # List of commands and features to enable
87
+
88
+    ENABLE => [
89
+
90
+        # COMMANDS
91
+
92
+            # These are the commands enabled by default
93
+            'help',
94
+            'desc',
95
+            'info',
96
+            'perms',
97
+            'writable',
98
+
99
+            # Uncomment or add new commands here.
100
+            # 'create',
101
+            # 'fork',
102
+            # 'mirror',
103
+            # 'readme',
104
+            # 'sskm',
105
+            # 'D',
106
+
107
+        # These FEATURES are enabled by default.
108
+
109
+            # essential (unless you're using smart-http mode)
110
+            'ssh-authkeys',
111
+
112
+            # creates git-config entries from gitolite.conf file entries like 'config foo.bar = baz'
113
+            'git-config',
114
+
115
+            # creates git-daemon-export-ok files; if you don't use git-daemon, comment this out
116
+            'daemon',
117
+
118
+            # creates projects.list file; if you don't use gitweb, comment this out
119
+            'gitweb',
120
+
121
+        # These FEATURES are disabled by default; uncomment to enable.  If you
122
+        # need to add new ones, ask on the mailing list :-)
123
+
124
+        # user-visible behaviour
125
+
126
+            # prevent wild repos auto-create on fetch/clone
127
+            # 'no-create-on-read',
128
+            # no auto-create at all (don't forget to enable the 'create' command!)
129
+            # 'no-auto-create',
130
+
131
+            # access a repo by another (possibly legacy) name
132
+            # 'Alias',
133
+
134
+            # give some users direct shell access.  See documentation in
135
+            # sts.html for details on the following two choices.
136
+            # "Shell $ENV{HOME}/.gitolite.shell-users",
137
+            # 'Shell alice bob',
138
+
139
+            # set default roles from lines like 'option default.roles-1 = ...', etc.
140
+            # 'set-default-roles',
141
+
142
+            # show more detailed messages on deny
143
+            # 'expand-deny-messages',
144
+
145
+            # show a message of the day
146
+            # 'Motd',
147
+
148
+        # system admin stuff
149
+
150
+            # enable mirroring (don't forget to set the HOSTNAME too!)
151
+            # 'Mirroring',
152
+
153
+            # allow people to submit pub files with more than one key in them
154
+            # 'ssh-authkeys-split',
155
+
156
+            # selective read control hack
157
+            # 'partial-copy',
158
+
159
+            # manage local, gitolite-controlled, copies of read-only upstream repos
160
+            # 'upstream',
161
+
162
+            # updates 'description' file instead of 'gitweb.description' config item
163
+            # 'cgit',
164
+
165
+            # allow repo-specific hooks to be added
166
+            # 'repo-specific-hooks',
167
+
168
+        # performance, logging, monitoring...
169
+
170
+            # be nice
171
+            # 'renice 10',
172
+
173
+            # log CPU times (user, system, cumulative user, cumulative system)
174
+            # 'CpuTime',
175
+
176
+        # syntactic_sugar for gitolite.conf and included files
177
+
178
+            # allow backslash-escaped continuation lines in gitolite.conf
179
+            # 'continuation-lines',
180
+
181
+            # create implicit user groups from directory names in keydir/
182
+            # 'keysubdirs-as-groups',
183
+
184
+            # allow simple line-oriented macros
185
+            # 'macros',
186
+
187
+        # Kindergarten mode
188
+
189
+            # disallow various things that sensible people shouldn't be doing anyway
190
+            # 'Kindergarten',
191
+    ],
192
+
193
+);
194
+
195
+# ------------------------------------------------------------------------------
196
+# per perl rules, this should be the last line in such a file:
197
+1;
198
+
199
+# Local variables:
200
+# mode: perl
201
+# End:
202
+# vim: set syn=perl: