lib/gitdocs/cli.rb in gitdocs-0.3.5 vs lib/gitdocs/cli.rb in gitdocs-0.3.6

- old
+ new

@@ -57,10 +57,10 @@ end desc "create PATH REMOTE", "Creates a new gitdoc root based on an existing remote" def create(path, remote) FileUtils.mkdir_p(File.dirname(path)) - system("git clone -q #{remote} #{path}") or raise "Unable to clone into #{path}" + system("git clone -q #{remote} #{ShellTools.escape(path)}") or raise "Unable to clone into #{path}" self.add(path) say "Created #{path} path for gitdoc" end desc "status", "Retrieve gitdocs status"