()
| 920 | } |
| 921 | |
| 922 | func (o *Remote) FetchRefspecs() ([]string, error) { |
| 923 | crefspecs := C.git_strarray{} |
| 924 | |
| 925 | runtime.LockOSThread() |
| 926 | defer runtime.UnlockOSThread() |
| 927 | |
| 928 | ret := C.git_remote_get_fetch_refspecs(&crefspecs, o.ptr) |
| 929 | runtime.KeepAlive(o) |
| 930 | if ret < 0 { |
| 931 | return nil, MakeGitError(ret) |
| 932 | } |
| 933 | defer C.git_strarray_dispose(&crefspecs) |
| 934 | |
| 935 | refspecs := makeStringsFromCStrings(crefspecs.strings, int(crefspecs.count)) |
| 936 | return refspecs, nil |
| 937 | } |
| 938 | |
| 939 | func (c *RemoteCollection) AddPush(remote, refspec string) error { |
| 940 | crefspec := C.CString(refspec) |
nothing calls this directly
no test coverage detected