[PATCH 1 of 2] subrepo: use unset instead of env -u to fix test on BSDs (issue5229)
Kevin Bullock
kbullock+mercurial at ringworld.org
Fri May 6 13:47:31 UTC 2016
# HG changeset patch
# User Kevin Bullock <kbullock+mercurial at ringworld.org>
# Date 1462542084 18000
# Fri May 06 08:41:24 2016 -0500
# Node ID eb319adf9c828aedab8cc23aba33b4c06e9356c4
# Parent fe50341de1fff843ae633d7ad7be908100c09cdc
subrepo: use unset instead of env -u to fix test on BSDs (issue5229)
diff --git a/tests/test-subrepo-git.t b/tests/test-subrepo-git.t
--- a/tests/test-subrepo-git.t
+++ b/tests/test-subrepo-git.t
@@ -1145,7 +1145,8 @@ test for Git CVE-2016-3068
$ 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
More information about the Mercurial-devel
mailing list