rename inmemory to anonymous remote #77

Merged
jezell merged 1 commits from inmemory-to-anon into master 2014-04-01 13:07:58 -05:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 9d0d814f19 - Show all commits

View File

@ -184,7 +184,7 @@ func (repo *Repository) CreateRemoteWithFetchspec(name string, url string, fetch
return remote, nil return remote, nil
} }
func (repo *Repository) CreateRemoteInMemory(fetch string, url string) (*Remote, error) { func (repo *Repository) CreateAnonymousRemote(fetch string, url string) (*Remote, error) {
remote := &Remote{} remote := &Remote{}
curl := C.CString(url) curl := C.CString(url)
@ -195,7 +195,7 @@ func (repo *Repository) CreateRemoteInMemory(fetch string, url string) (*Remote,
runtime.LockOSThread() runtime.LockOSThread()
defer runtime.UnlockOSThread() defer runtime.UnlockOSThread()
ret := C.git_remote_create_inmemory(&remote.ptr, repo.ptr, cfetch, curl) ret := C.git_remote_create_anonymous(&remote.ptr, repo.ptr, cfetch, curl)
if ret < 0 { if ret < 0 {
return nil, MakeGitError(ret) return nil, MakeGitError(ret)
} }

View File

@ -10,7 +10,7 @@ func TestRefspecs(t *testing.T) {
defer os.RemoveAll(repo.Workdir()) defer os.RemoveAll(repo.Workdir())
defer repo.Free() defer repo.Free()
remote, err := repo.CreateRemoteInMemory("refs/heads/*:refs/heads/*", "git://foo/bar") remote, err := repo.CreateAnonymousRemote("refs/heads/*:refs/heads/*", "git://foo/bar")
checkFatal(t, err) checkFatal(t, err)
expected := []string{ expected := []string{