Skip to content

Instantly share code, notes, and snippets.

/ruby.rb Secret

Created August 3, 2016 08:50
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/30d27ba7d57e0b6cfedda3a6ecf3dc53 to your computer and use it in GitHub Desktop.
Save anonymous/30d27ba7d57e0b6cfedda3a6ecf3dc53 to your computer and use it in GitHub Desktop.
# Pastebin pHd5e2yY
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