diff options
| author | Vicent Marti <tanoku@gmail.com> | 2012-11-17 19:54:47 -0800 |
|---|---|---|
| committer | Ben Straub <bs@github.com> | 2012-11-27 13:18:27 -0800 |
| commit | cfbe4be3fb639d96587974794fe437ace0c383c4 (patch) | |
| tree | 1dcc1a4462075a7832d4cb853634af00fb78e7b1 /src/clone.c | |
| parent | 2508cc66eb91597b12dc19721d9cea1f06e72107 (diff) | |
| download | libgit2-cfbe4be3fb639d96587974794fe437ace0c383c4.tar.gz | |
More external API cleanup
Conflicts:
src/branch.c
tests-clar/refs/branches/create.c
Diffstat (limited to 'src/clone.c')
| -rw-r--r-- | src/clone.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/clone.c b/src/clone.c index ea644dd11..c90d85466 100644 --- a/src/clone.c +++ b/src/clone.c @@ -28,18 +28,18 @@ static int create_branch( const git_oid *target, const char *name) { - git_object *head_obj = NULL; + git_commit *head_obj = NULL; git_reference *branch_ref; int error; /* Find the target commit */ - if ((error = git_object_lookup(&head_obj, repo, target, GIT_OBJ_ANY)) < 0) + if ((error = git_commit_lookup(&head_obj, repo, target)) < 0) return error; /* Create the new branch */ error = git_branch_create(&branch_ref, repo, name, head_obj, 0); - git_object_free(head_obj); + git_commit_free(head_obj); if (!error) *branch = branch_ref; @@ -381,9 +381,9 @@ int git_clone( git_repository **out, const char *origin_url, const char *workdir_path, + git_checkout_opts *checkout_opts, git_transfer_progress_callback fetch_progress_cb, - void *fetch_progress_payload, - git_checkout_opts *checkout_opts) + void *fetch_progress_payload) { assert(out && origin_url && workdir_path); |
