diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2018-11-15 15:12:37 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2018-11-17 00:20:21 +0300 |
commit | 24818eff794f32fea5a87a9d4c9e042534da272d (patch) | |
tree | ce7e1e5353610ccf421bb589f7ad18b552b8ddb8 /test/segments | |
parent | 1b7e41964c84b124e91fafec66230c7c678a4145 (diff) |
Fix test
The branch name must not be expanded.
Diffstat (limited to 'test/segments')
-rwxr-xr-x | test/segments/vcs-git.spec | 2 |
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 |