wrappers for git_cred, git_transfer_progress. don't call nil callbacks.