From f954871968ca6df54aab26d6984cc42bb3904ef2 Mon Sep 17 00:00:00 2001 From: Ben Navetta Date: Mon, 18 Aug 2014 22:19:06 -0400 Subject: start on status tests; fix bug in Repository.StatusList() --- repository.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'repository.go') diff --git a/repository.go b/repository.go index 90d71ff..83e1fab 100644 --- a/repository.go +++ b/repository.go @@ -121,17 +121,17 @@ func (v *Repository) Index() (*Index, error) { func (v *Repository) StatusList() (*StatusList, error) { var ptr *C.git_status_list - var options *C.git_status_options + options := C.git_status_options{} runtime.LockOSThread() defer runtime.UnlockOSThread() - ret := C.git_status_init_options(options, C.GIT_STATUS_OPTIONS_VERSION) + ret := C.git_status_init_options(&options, C.GIT_STATUS_OPTIONS_VERSION) if ret < 0 { return nil, MakeGitError(ret) } - ret = C.git_status_list_new(&ptr, v.ptr, options) + ret = C.git_status_list_new(&ptr, v.ptr, &options) if ret < 0 { return nil, MakeGitError(ret) } -- cgit v1.2.3