lib/application.rb in docman-0.0.22 vs lib/application.rb in docman-0.0.23

- old
+ new

@@ -45,10 +45,12 @@ @force = false end def init(name, repo, options) branch = options['branch'] ? options['branch'] : 'master' - `mkdir #{name} && cd #{name} && git clone -b #{branch} --single-branch --depth 1 #{repo} config` + `mkdir #{name}` + Dir.chdir name + GitUtil.clone_repo(repo, 'config', 'branch', branch, true, 1) #Dir.chdir File.join(name, 'config') #`git checkout #{branch} & git branch -u origin #{branch}` end def with_rescue