diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-08-02 08:34:41 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-08-04 15:38:49 +0200 |
commit | 0fa94a0dddfc38635abf49a38dbadc9b9ead4d7a (patch) | |
tree | 622abc045c9fc1542a1ceb42ad13d8aaf755e9ce /lib | |
parent | 3598e60bf20b185b3f8d4e9a88a8eff39c8f729b (diff) | |
download | gitlab-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.rb | 2 |
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 |