merge spec fixes onto master

This commit is contained in:
Eliott Appleford 2014-07-09 14:10:49 +01:00
commit bf03c14518
9 changed files with 48 additions and 44 deletions

View file

@ -19,13 +19,12 @@ module Middleman::Cli
# The git task
# @param [String] name
def git(repo, target='.')
require 'rugged'
require 'tmpdir'
path = repository_path(repo)
Dir.mktmpdir do |dir|
Rugged::Repository.clone_at(path, dir)
run("git clone #{path} #{dir}")
source_paths << dir