# HG changeset patch # User Sean Farley # Date 1497572093 25200 # Node ID 642feee29d7091b5fbdbb7e22ecbccd9aaf937c3 # Parent 559db66dead5f45e8aa2e0ff01082bdd6ddc4256 tests: protect tests involving git ext::sh with git-ext-sh diff -r 559db66dead5 -r 642feee29d70 tests/test-convert-git.t --- a/tests/test-convert-git.t Thu Jun 15 17:13:23 2017 -0700 +++ b/tests/test-convert-git.t Thu Jun 15 17:14:53 2017 -0700 @@ -948,7 +948,7 @@ $ hg convert git-repo4 git-repo4-broken-hg 2>&1 | grep 'abort:' abort: cannot read changes in 1c0ce3c5886f83a1d78a7b517cdff5cf9ca17bdd -#if no-windows +#if no-windows git19 test for escaping the repo name (CVE-2016-3069) diff -r 559db66dead5 -r 642feee29d70 tests/test-subrepo-git.t --- a/tests/test-subrepo-git.t Thu Jun 15 17:13:23 2017 -0700 +++ b/tests/test-subrepo-git.t Thu Jun 15 17:14:53 2017 -0700 @@ -1137,6 +1137,8 @@ ? s/foobar.orig ? s/snake.python.orig +#if git19 + test for Git CVE-2016-3068 $ hg init malicious-subrepository $ cd malicious-subrepository @@ -1178,3 +1180,5 @@ [255] $ f -Dq pwned.txt pwned: you asked for it + +#endif