Skip to content

Commit

Permalink
Use credentials parameter in RemoteCallbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
omus committed Jul 30, 2017
1 parent 1ce3c8e commit d2eb242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/libgit2/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ Matches the [`git_remote_callbacks`](https://libgit2.github.com/libgit2/#HEAD/ty
end

function RemoteCallbacks(credentials::Ptr{Void}, payload::Ref{Nullable{AbstractCredentials}})
RemoteCallbacks(credentials=credentials_cb(), payload=pointer_from_objref(payload))
RemoteCallbacks(credentials=credentials, payload=pointer_from_objref(payload))
end

"""
Expand Down

0 comments on commit d2eb242

Please sign in to comment.