Skip to content

Instantly share code, notes, and snippets.

/ruby.rb Secret

Created August 3, 2016 08:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/7d578bb3f7551a3a794e353bcee41124 to your computer and use it in GitHub Desktop.
Save anonymous/7d578bb3f7551a3a794e353bcee41124 to your computer and use it in GitHub Desktop.
# Pastebin T263w70q
tp = lambda { |total_objects, indexed_objects, received_objects, local_objects, total_deltas, indexed_deltas, received_bytes|
puts "#{received_objects} / #{total_objects}"
}
Rugged::Repository.clone_at(clone_uri.to_s, repo_local_path, checkout_branch: checkout_branch, credentials: credential, transfer_progress: tp)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment