summaryrefslogtreecommitdiff
path: root/remote.go
diff options
context:
space:
mode:
authorJesse Ezell <[email protected]>2014-04-04 00:30:05 -0700
committerJesse Ezell <[email protected]>2014-04-04 00:30:05 -0700
commitb00cb1a343b42130bd963ce5f6aff49527021259 (patch)
treef4d2ec2d5e4823ecce89092cd6748856c0318053 /remote.go
parent4553b3ada6be15c47250bfb7948493b6cb88031b (diff)
parent9cd1d129bcd567ef65137783a603f8d898d8d933 (diff)
Merge remote-tracking branch 'libgit/master' into add-basic-diff-patch
Diffstat (limited to 'remote.go')
-rw-r--r--remote.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/remote.go b/remote.go
index 66097b8..eb5d7a7 100644
--- a/remote.go
+++ b/remote.go
@@ -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(url, fetch 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, curl, cfetch)
if ret < 0 {
return nil, MakeGitError(ret)
}