aboutsummaryrefslogtreecommitdiff
path: root/test/segments
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2018-11-15 15:12:37 +0300
committerDominik Ritter <dritter03@googlemail.com>2018-11-17 00:20:21 +0300
commit24818eff794f32fea5a87a9d4c9e042534da272d (patch)
treece7e1e5353610ccf421bb589f7ad18b552b8ddb8 /test/segments
parent1b7e41964c84b124e91fafec66230c7c678a4145 (diff)
Fix test
The branch name must not be expanded.
Diffstat (limited to 'test/segments')
-rwxr-xr-xtest/segments/vcs-git.spec2
1 files changed, 1 insertions, 1 deletions
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