diff options
| author | Carlos MartÃn Nieto <[email protected]> | 2019-12-10 23:41:38 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-12-10 23:41:38 +0100 |
| commit | ba1b5f0c23b33b25122cc42f2b8c6669fd08732b (patch) | |
| tree | d7b16f854db35a2ae348bc1eaa11ba860f37c966 /credentials.go | |
| parent | 37e5b53f742d3127acfa2a9cfc57ccb94e1b8c59 (diff) | |
| parent | c5159e624e55cb14c56a3e5f36200be409fba9d6 (diff) | |
Merge pull request #528 from libgit2/cmn/bump-libgit2
Bump libgit2 to 6777db8e83
Diffstat (limited to 'credentials.go')
| -rw-r--r-- | credentials.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/credentials.go b/credentials.go index 4e42b6e..038313b 100644 --- a/credentials.go +++ b/credentials.go @@ -2,6 +2,9 @@ package git /* #include <git2.h> +#include <git2/sys/cred.h> + +git_credtype_t _go_git_cred_credtype(git_cred *cred); */ import "C" import "unsafe" @@ -27,7 +30,7 @@ func (o *Cred) HasUsername() bool { } func (o *Cred) Type() CredType { - return (CredType)(o.ptr.credtype) + return (CredType)(C._go_git_cred_credtype(o.ptr)) } func credFromC(ptr *C.git_cred) *Cred { |
