Show More
@@ -109,12 +109,12 b" MSYS changes 'file:' into 'file;'" | |||||
109 | It's tricky to make file:// URLs working on every platform with |
|
109 | It's tricky to make file:// URLs working on every platform with | |
110 | regular shell commands. |
|
110 | regular shell commands. | |
111 |
|
111 | |||
112 |
$ URL=`$PYTHON -c "import os; print |
|
112 | $ URL=`$PYTHON -c "from __future__ import print_function; import os; print('file://foobar' + ('/' + os.getcwd().replace(os.sep, '/')).replace('//', '/') + '/../test')"` | |
113 | $ hg pull -q "$URL" |
|
113 | $ hg pull -q "$URL" | |
114 | abort: file:// URLs can only refer to localhost |
|
114 | abort: file:// URLs can only refer to localhost | |
115 | [255] |
|
115 | [255] | |
116 |
|
116 | |||
117 |
$ URL=`$PYTHON -c "import os; print |
|
117 | $ URL=`$PYTHON -c "from __future__ import print_function; import os; print('file://localhost' + ('/' + os.getcwd().replace(os.sep, '/')).replace('//', '/') + '/../test')"` | |
118 | $ hg pull -q "$URL" |
|
118 | $ hg pull -q "$URL" | |
119 |
|
119 | |||
120 | SEC: check for unsafe ssh url |
|
120 | SEC: check for unsafe ssh url |
General Comments 0
You need to be logged in to leave comments.
Login now