merge spec fixes onto master
This commit is contained in:
commit
bf03c14518
9 changed files with 48 additions and 44 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue