changeset 29135:3879d02cd1cc

subrepo: use unset instead of env -u to fix test on BSDs (issue5229)
author Kevin Bullock <kbullock+mercurial@ringworld.org>
date Fri, 06 May 2016 08:41:24 -0500
parents 8d5584d8345b
children e05bdc01505f
files tests/test-subrepo-git.t
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-subrepo-git.t	Wed May 04 20:11:59 2016 +0100
+++ b/tests/test-subrepo-git.t	Fri May 06 08:41:24 2016 -0500
@@ -1145,7 +1145,8 @@
   $ hg add .hgsub
   $ hg commit -m "add subrepo"
   $ cd ..
-  $ env -u GIT_ALLOW_PROTOCOL hg clone malicious-subrepository malicious-subrepository-protected
+  $ unset GIT_ALLOW_PROTOCOL
+  $ hg clone malicious-subrepository malicious-subrepository-protected
   Cloning into '$TESTTMP/tc/malicious-subrepository-protected/s'... (glob)
   fatal: transport 'ext' not allowed
   updating to branch default