subrepo: use unset instead of env -u to fix test on BSDs (issue5229)
authorKevin Bullock <kbullock+mercurial@ringworld.org>
Fri, 06 May 2016 08:41:24 -0500
changeset 29135 3879d02cd1cc
parent 29134 8d5584d8345b
child 29136 e05bdc01505f
subrepo: use unset instead of env -u to fix test on BSDs (issue5229)
tests/test-subrepo-git.t
--- 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