Skip to content
This repository has been archived by the owner on Nov 30, 2018. It is now read-only.

Commit

Permalink
Fixes clone error
Browse files Browse the repository at this point in the history
  • Loading branch information
vknabel committed Feb 1, 2017
1 parent 85673be commit b609a12
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Sources/RockLib/Runner/Repository.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,10 @@ public struct Repository {
}

public func clone(url: String, branch: String = "master") -> PromptRunner<PromptError> {
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]
)
}

Expand Down

0 comments on commit b609a12

Please sign in to comment.