diff options
| author | Carlos Martín Nieto <[email protected]> | 2014-04-01 20:10:20 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2014-04-01 20:10:20 +0200 |
| commit | 9cd1d129bcd567ef65137783a603f8d898d8d933 (patch) | |
| tree | 13007135d5c73a13f8489ebbd8470e1ec0af37c1 /remote.go | |
| parent | c8ff10933b9820df16473dc38ff79afd5beb497f (diff) | |
Remote: The whole point of the anonymous change
Was that it would break and we'd remember that the order changed. Oh
well.
Diffstat (limited to 'remote.go')
| -rw-r--r-- | remote.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -184,7 +184,7 @@ func (repo *Repository) CreateRemoteWithFetchspec(name string, url string, fetch return remote, nil } -func (repo *Repository) CreateAnonymousRemote(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) CreateAnonymousRemote(fetch string, url string) (*Remote runtime.LockOSThread() defer runtime.UnlockOSThread() - ret := C.git_remote_create_anonymous(&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) } |
