From 0fa94a0dddfc38635abf49a38dbadc9b9ead4d7a Mon Sep 17 00:00:00 2001 From: Bob Van Landuyt Date: Wed, 2 Aug 2017 08:34:41 +0200 Subject: Make sure the check works for paths with spaces. --- lib/gitlab/git/storage/forked_storage_check.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/gitlab') diff --git a/lib/gitlab/git/storage/forked_storage_check.rb b/lib/gitlab/git/storage/forked_storage_check.rb index 557a3b0e61d..0e9e7ba596b 100644 --- a/lib/gitlab/git/storage/forked_storage_check.rb +++ b/lib/gitlab/git/storage/forked_storage_check.rb @@ -51,7 +51,7 @@ module Gitlab end def test_script(path) - "testpath=\"$(realpath #{Shellwords.escape(path)})\" && stat $testpath" + "testpath=$(realpath #{Shellwords.escape(path)}) && stat \"$testpath\"" end end end -- cgit v1.2.3