From 24818eff794f32fea5a87a9d4c9e042534da272d Mon Sep 17 00:00:00 2001 From: Dominik Ritter Date: Thu, 15 Nov 2018 13:12:37 +0100 Subject: [PATCH] Fix test The branch name must not be expanded. --- test/segments/vcs-git.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/segments/vcs-git.spec b/test/segments/vcs-git.spec index bb2aef5b..f5777a1e 100755 --- a/test/segments/vcs-git.spec +++ b/test/segments/vcs-git.spec @@ -496,7 +496,7 @@ function testBranchNameScriptingVulnerability() { echo "#!/bin/sh\n\necho 'hacked'\n" > evil_script.sh chmod +x evil_script.sh - git checkout -b "$(./evil_script.sh)" 2>/dev/null + git checkout -b '$(./evil_script.sh)' 2>/dev/null git add . 2>/dev/null git commit -m "Initial commit" >/dev/null