##// END OF EJS Templates
configitems: register the 'server.uncompressedallowsecret' config
marmoute -
r33223:b045344f default
parent child Browse files
Show More
@@ -134,6 +134,9 b" coreconfigitem('server', 'maxhttpheaderl"
134 coreconfigitem('server', 'preferuncompressed',
134 coreconfigitem('server', 'preferuncompressed',
135 default=False,
135 default=False,
136 )
136 )
137 coreconfigitem('server', 'uncompressedallowsecret',
138 default=False,
139 )
137 coreconfigitem('ui', 'clonebundleprefers',
140 coreconfigitem('ui', 'clonebundleprefers',
138 default=list,
141 default=list,
139 )
142 )
@@ -172,7 +172,7 b' def allowservergeneration(repo):'
172 # So don't allow this by default.
172 # So don't allow this by default.
173 secret = phases.hassecret(repo)
173 secret = phases.hassecret(repo)
174 if secret:
174 if secret:
175 return repo.ui.configbool('server', 'uncompressedallowsecret', False)
175 return repo.ui.configbool('server', 'uncompressedallowsecret')
176
176
177 return True
177 return True
178
178
General Comments 0
You need to be logged in to leave comments. Login now