summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCiro Santilli <ciro.santilli@gmail.com>2014-10-18 22:49:56 +0200
committerCiro Santilli <ciro.santilli@gmail.com>2014-10-18 22:49:56 +0200
commita3623a9691b4cba19338fb6fe1c7acf64d5e8e70 (patch)
tree2dd35639b9cd7c713edcf20563d5306fe40a0e49 /lib
parent3880bb61760ef1f69b0df49148202ff6b4208f01 (diff)
downloadgitlab-ce-a3623a9691b4cba19338fb6fe1c7acf64d5e8e70.tar.gz
Use argument list for sh instead of string
Faster, more portable and less error prone since no shell expansion.
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/gitlab/shell.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/gitlab/shell.rake b/lib/tasks/gitlab/shell.rake
index a8f26a7c029..21c3c698245 100644
--- a/lib/tasks/gitlab/shell.rake
+++ b/lib/tasks/gitlab/shell.rake
@@ -17,7 +17,7 @@ namespace :gitlab do
# Clone if needed
unless File.directory?(target_dir)
- sh "git clone '#{args.repo}' '#{target_dir}'"
+ sh(*%W(git clone #{args.repo} #{target_dir}))
end
# Make sure we're on the right tag