Mercurial > hg
comparison tests/test-subrepo-git.t @ 28939:ce01b4810aef
test-subrepo-git: add globs for Windows
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 15 Apr 2016 22:23:34 -0400 |
parents | ff0d3b6b287f |
children | 3879d02cd1cc 1f8b861ba15c |
comparison
equal
deleted
inserted
replaced
28938:ea1fec3e9aba | 28939:ce01b4810aef |
---|---|
1144 $ cd .. | 1144 $ cd .. |
1145 $ hg add .hgsub | 1145 $ hg add .hgsub |
1146 $ hg commit -m "add subrepo" | 1146 $ hg commit -m "add subrepo" |
1147 $ cd .. | 1147 $ cd .. |
1148 $ env -u GIT_ALLOW_PROTOCOL hg clone malicious-subrepository malicious-subrepository-protected | 1148 $ env -u GIT_ALLOW_PROTOCOL hg clone malicious-subrepository malicious-subrepository-protected |
1149 Cloning into '$TESTTMP/tc/malicious-subrepository-protected/s'... | 1149 Cloning into '$TESTTMP/tc/malicious-subrepository-protected/s'... (glob) |
1150 fatal: transport 'ext' not allowed | 1150 fatal: transport 'ext' not allowed |
1151 updating to branch default | 1151 updating to branch default |
1152 cloning subrepo s from ext::sh -c echo% pwned% >&2 | 1152 cloning subrepo s from ext::sh -c echo% pwned% >&2 |
1153 abort: git clone error 128 in s (in subrepo s) | 1153 abort: git clone error 128 in s (in subrepo s) |
1154 [255] | 1154 [255] |
1155 | 1155 |
1156 whitelisting of ext should be respected (that's the git submodule behaviour) | 1156 whitelisting of ext should be respected (that's the git submodule behaviour) |
1157 $ env GIT_ALLOW_PROTOCOL=ext hg clone malicious-subrepository malicious-subrepository-clone-allowed | 1157 $ env GIT_ALLOW_PROTOCOL=ext hg clone malicious-subrepository malicious-subrepository-clone-allowed |
1158 Cloning into '$TESTTMP/tc/malicious-subrepository-clone-allowed/s'... | 1158 Cloning into '$TESTTMP/tc/malicious-subrepository-clone-allowed/s'... (glob) |
1159 pwned | 1159 pwned |
1160 fatal: Could not read from remote repository. | 1160 fatal: Could not read from remote repository. |
1161 | 1161 |
1162 Please make sure you have the correct access rights | 1162 Please make sure you have the correct access rights |
1163 and the repository exists. | 1163 and the repository exists. |