libgit2/libgit2 — pull request #1137 by ben (2012-12-12 20:30:16+00:00)
Title: Clone authentication

Clone currently doesn't allow the caller access to the remote before the initial fetch, so it's only good for anonymous connections (i.e. public GitHub repositories, but not private).

This branch converts `git_clone` and friends to take a `git_remote` instead of a URL, so the caller can set up authentication callbacks, custom transport, etc. This includes introducing the concept of a "dangling" remote (one which doesn't belong to a repository yet).

## :construction: WIP :construction:

Feedback appreciated, but this isn't ready to merge yet.