Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Quiet git during bundle install if quiet option set #2194

Merged
merged 2 commits into from Dec 8, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/bundler/source/git/git_proxy.rb
Expand Up @@ -44,7 +44,9 @@ def checkout
else
Bundler.ui.info "Fetching #{uri}"
FileUtils.mkdir_p(path.dirname)
git %|clone #{uri_escaped} "#{path}" --bare --no-hardlinks|
clone_command = %|clone #{uri_escaped} "#{path}" --bare --no-hardlinks|
clone_command = "#{clone_command} --quiet" if Bundler.ui.quiet?
git clone_command
end
end

Expand Down Expand Up @@ -139,4 +141,4 @@ def allowed_in_path

end
end
end
end
4 changes: 4 additions & 0 deletions lib/bundler/ui.rb
Expand Up @@ -57,6 +57,10 @@ def be_quiet!
@quiet = true
end

def quiet?
@quiet
end

def debug?
# needs to be false instead of nil to be newline param to other methods
!!@debug && !@quiet
Expand Down