diff options
| author | Carlos Martín Nieto <[email protected]> | 2014-04-01 20:07:58 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2014-04-01 20:07:58 +0200 |
| commit | c8ff10933b9820df16473dc38ff79afd5beb497f (patch) | |
| tree | 7285c859fa13f9ceb88469279e36f4a57cf0a1e6 | |
| parent | fa41ce8575cc277ef2b4790c34657a50fa181bff (diff) | |
| parent | 9d0d814f19e9d31caeeb68abce84f9eba9659737 (diff) | |
Merge pull request #77 from jezell/inmemory-to-anon
rename inmemory to anonymous remote
| -rw-r--r-- | remote.go | 4 | ||||
| -rw-r--r-- | remote_test.go | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -184,7 +184,7 @@ func (repo *Repository) CreateRemoteWithFetchspec(name string, url string, fetch 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{} curl := C.CString(url) @@ -195,7 +195,7 @@ func (repo *Repository) CreateRemoteInMemory(fetch string, url string) (*Remote, runtime.LockOSThread() 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 { return nil, MakeGitError(ret) } diff --git a/remote_test.go b/remote_test.go index 90e24ae..37ed8c3 100644 --- a/remote_test.go +++ b/remote_test.go @@ -10,7 +10,7 @@ func TestRefspecs(t *testing.T) { defer os.RemoveAll(repo.Workdir()) 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) expected := []string{ |
