Browse files

git_remote_add -> git_remote_create

  • Loading branch information...
1 parent 3ac210a commit 9904e817214b61c209c4c8edfabb5887e0fd7ae3 @ben ben committed Jul 1, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/repository.cc
View
2 src/repository.cc
@@ -671,7 +671,7 @@ Handle<Value> Repository::CreateRemote(const Arguments &args) {
void Repository::AsyncCreateRemote(uv_work_t *req) {
CreateRemoteBaton *baton = GetBaton<CreateRemoteBaton>(req);
- if(AsyncLibCall(git_remote_add(&baton->remote, baton->repo->repo_,
+ if(AsyncLibCall(git_remote_create(&baton->remote, baton->repo->repo_,
baton->name.c_str(), baton->url.c_str()), baton)) {
if(!AsyncLibCall(git_remote_save(baton->remote), baton)) {
git_remote_free(baton->remote);

0 comments on commit 9904e81

Please sign in to comment.