change the repository clone_at option to checkout_branch to match
libgit2 and assign it. add tests for checkout_branch
Improved code based on comments from @arthurschreiber
Remove the test with ssh credentials and branch since it breaks the travis build. Added assertion to test_clone_with_branch
Merge pull request #339 from albertsun/repository-clone-at-checkout-branch

Rugged::Repository.clone_at checkout_branch option
Use `StringValueCStr` instead of `StringValuePtr`

`StringValuePtr` returns a non-zero terminated `char *`, but we need to pass a zero-terminated `char *` to libgit2.
Update to latest libgit2
Merge pull request #340 from libgit2/cmn/updates

Update to latest libgit2
Merge branch 'development' into merge-304

Conflicts:
	ext/rugged/rugged_repo.c
	test/online/clone_test.rb
	test/repo_test.rb