summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2017-08-02 08:34:41 +0200
committerBob Van Landuyt <bob@vanlanduyt.co>2017-08-04 15:38:49 +0200
commit0fa94a0dddfc38635abf49a38dbadc9b9ead4d7a (patch)
tree622abc045c9fc1542a1ceb42ad13d8aaf755e9ce /lib
parent3598e60bf20b185b3f8d4e9a88a8eff39c8f729b (diff)
downloadgitlab-ce-0fa94a0dddfc38635abf49a38dbadc9b9ead4d7a.tar.gz
Make sure the check works for paths with spaces.
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/git/storage/forked_storage_check.rb2
1 files changed, 1 insertions, 1 deletions
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