From b609a1217fd208ec43b3c72587ae0caae021ae56 Mon Sep 17 00:00:00 2001 From: Valentin Knabel Date: Wed, 1 Feb 2017 22:13:39 +0100 Subject: [PATCH] Fixes clone error --- Sources/RockLib/Runner/Repository.swift | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Sources/RockLib/Runner/Repository.swift b/Sources/RockLib/Runner/Repository.swift index 26f02c0..f0b8109 100644 --- a/Sources/RockLib/Runner/Repository.swift +++ b/Sources/RockLib/Runner/Repository.swift @@ -11,17 +11,10 @@ public struct Repository { } public func clone(url: String, branch: String = "master") -> PromptRunner { - let cmd: String = [ - "git clone --depth 1", - "\"\(url)\"", - "--branch \"\(branch)\"", - "\"\(self.path.description)\"", - "> /dev/null" - ].reduce("") { "\($0) $($1)" } return Prompt.mkpath(path.parent()) %& Prompt.chdir( self.path.parent(), - run: >-cmd + run: >-["git", "clone", "--depth", "1", url, "--branch", branch, self.path.description] ) }