@@ -9,7 +9,7 @@ function mirror_callback(remote::Ptr{Ptr{Cvoid}}, repo_ptr::Ptr{Cvoid},
99 ensure_initialized ()
1010 # Create the remote with a mirroring url
1111 fetch_spec = " +refs/*:refs/*"
12- err = ccall ((:git_remote_create_with_fetchspec , : libgit2 ), Cint,
12+ err = ccall ((:git_remote_create_with_fetchspec , libgit2), Cint,
1313 (Ptr{Ptr{Cvoid}}, Ptr{Cvoid}, Cstring, Cstring, Cstring),
1414 remote, repo_ptr, name, url, fetch_spec)
1515 err != 0 && return Cint (err)
4343function user_abort ()
4444 ensure_initialized ()
4545 # Note: Potentially it could be better to just throw a Julia error.
46- ccall ((:giterr_set_str , : libgit2 ), Cvoid,
46+ ccall ((:giterr_set_str , libgit2), Cvoid,
4747 (Cint, Cstring), Cint (Error. Callback),
4848 " Aborting, user cancelled credential request." )
4949 return Cint (Error. EUSER)
5050end
5151
5252function prompt_limit ()
5353 ensure_initialized ()
54- ccall ((:giterr_set_str , : libgit2 ), Cvoid,
54+ ccall ((:giterr_set_str , libgit2), Cvoid,
5555 (Cint, Cstring), Cint (Error. Callback),
5656 " Aborting, maximum number of prompts reached." )
5757 return Cint (Error. EAUTH)
5858end
5959
6060function exhausted_abort ()
6161 ensure_initialized ()
62- ccall ((:giterr_set_str , : libgit2 ), Cvoid,
62+ ccall ((:giterr_set_str , libgit2), Cvoid,
6363 (Cint, Cstring), Cint (Error. Callback),
6464 " All authentication methods have failed." )
6565 return Cint (Error. EAUTH)
@@ -79,7 +79,7 @@ function authenticate_ssh(libgit2credptr::Ptr{Ptr{Cvoid}}, p::CredentialPayload,
7979
8080 # first try ssh-agent if credentials support its usage
8181 if p. use_ssh_agent && username_ptr != Cstring (C_NULL ) && (! revised || ! isfilled (cred))
82- err = ccall ((:git_cred_ssh_key_from_agent , : libgit2 ), Cint,
82+ err = ccall ((:git_cred_ssh_key_from_agent , libgit2), Cint,
8383 (Ptr{Ptr{Cvoid}}, Cstring), libgit2credptr, username_ptr)
8484
8585 p. use_ssh_agent = false # use ssh-agent only one time
@@ -175,7 +175,7 @@ function authenticate_ssh(libgit2credptr::Ptr{Ptr{Cvoid}}, p::CredentialPayload,
175175 if ! revised
176176 return exhausted_abort ()
177177 end
178- return ccall ((:git_cred_ssh_key_new , : libgit2 ), Cint,
178+ return ccall ((:git_cred_ssh_key_new , libgit2), Cint,
179179 (Ptr{Ptr{Cvoid}}, Cstring, Cstring, Cstring, Cstring),
180180 libgit2credptr, cred. user, cred. pubkey, cred. prvkey, cred. pass)
181181end
@@ -235,7 +235,7 @@ function authenticate_userpass(libgit2credptr::Ptr{Ptr{Cvoid}}, p::CredentialPay
235235 return exhausted_abort ()
236236 end
237237
238- return ccall ((:git_cred_userpass_plaintext_new , : libgit2 ), Cint,
238+ return ccall ((:git_cred_userpass_plaintext_new , libgit2), Cint,
239239 (Ptr{Ptr{Cvoid}}, Cstring, Cstring),
240240 libgit2credptr, cred. user, cred. pass)
241241end
@@ -339,7 +339,7 @@ function credentials_callback(libgit2credptr::Ptr{Ptr{Cvoid}}, url_ptr::Cstring,
339339 if err == 0
340340 if p. explicit != = nothing
341341 ensure_initialized ()
342- ccall ((:giterr_set_str , : libgit2 ), Cvoid, (Cint, Cstring), Cint (Error. Callback),
342+ ccall ((:giterr_set_str , libgit2), Cvoid, (Cint, Cstring), Cint (Error. Callback),
343343 " The explicitly provided credential is incompatible with the requested " *
344344 " authentication methods." )
345345 end
0 commit comments