Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2017-08-02 09:34:41 +0300
committerBob Van Landuyt <bob@vanlanduyt.co>2017-08-04 16:38:49 +0300
commit0fa94a0dddfc38635abf49a38dbadc9b9ead4d7a (patch)
tree622abc045c9fc1542a1ceb42ad13d8aaf755e9ce /lib/gitlab
parent3598e60bf20b185b3f8d4e9a88a8eff39c8f729b (diff)
Make sure the check works for paths with spaces.
Diffstat (limited to 'lib/gitlab')
-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