Commit 5927576b authored by Samuel Giddins's avatar Samuel Giddins

[Repo::Add] Clean up UI code for cloning

parent 85ff9b2d
...@@ -38,7 +38,9 @@ module Pod ...@@ -38,7 +38,9 @@ module Pod
def run def run
prefix = @shallow ? 'Creating shallow clone of' : 'Cloning' prefix = @shallow ? 'Creating shallow clone of' : 'Cloning'
UI.section("#{prefix} spec repo `#{@name}` from `#{@url}`#{" (branch `#{@branch}`)" if @branch}") do section = "#{prefix} spec repo `#{@name}` from `#{@url}`"
section << " (branch `#{@branch}`)" if @branch
UI.section(section) do
create_repos_dir create_repos_dir
clone_repo clone_repo
checkout_branch checkout_branch
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment