Show More
@@ -289,7 +289,7 b' class hgweb(object):' | |||||
289 | raise ErrorResponse(HTTP_UNAUTHORIZED, 'read not authorized') |
|
289 | raise ErrorResponse(HTTP_UNAUTHORIZED, 'read not authorized') | |
290 |
|
290 | |||
291 | if op == 'pull' and not self.allowpull: |
|
291 | if op == 'pull' and not self.allowpull: | |
292 |
raise ErrorResponse(HTTP_ |
|
292 | raise ErrorResponse(HTTP_UNAUTHORIZED, 'pull not authorized') | |
293 | # op is None when checking allow/deny_read permissions for a web-browser request |
|
293 | # op is None when checking allow/deny_read permissions for a web-browser request | |
294 | elif op == 'pull' or op is None: |
|
294 | elif op == 'pull' or op is None: | |
295 | return |
|
295 | return |
@@ -2,11 +2,11 b' adding a' | |||||
2 | updating working directory |
|
2 | updating working directory | |
3 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
3 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
4 | % expect error, cloning not allowed |
|
4 | % expect error, cloning not allowed | |
5 | abort: error: |
|
5 | abort: authorization failed | |
6 | requesting all changes |
|
6 | requesting all changes | |
7 | % serve errors |
|
7 | % serve errors | |
8 | % expect error, pulling not allowed |
|
8 | % expect error, pulling not allowed | |
9 | abort: error: |
|
9 | abort: authorization failed | |
10 | pulling from http://localhost/ |
|
10 | pulling from http://localhost/ | |
11 | searching for changes |
|
11 | searching for changes | |
12 | % serve errors |
|
12 | % serve errors |
General Comments 0
You need to be logged in to leave comments.
Login now