summaryrefslogtreecommitdiff
path: root/tests/describe
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-09-30 04:58:02 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2014-09-30 04:58:02 +0200
commit1f501a086b4a9103f5ef5540c82c57d8559f0aff (patch)
treee840adc279af825e43ce0f76bd5a9aa4cad4ac75 /tests/describe
parentaf6cc38fc0acba14277ebfd247e0a46a867a2c33 (diff)
downloadlibgit2-1f501a086b4a9103f5ef5540c82c57d8559f0aff.tar.gz
describe: rename _object() to _commit()
We don't describe arbitrary object, so let's give it the name of the one object type we accept.
Diffstat (limited to 'tests/describe')
-rw-r--r--tests/describe/describe.c2
-rw-r--r--tests/describe/describe_helpers.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/describe/describe.c b/tests/describe/describe.c
index fcd4486bc..a7f3c84df 100644
--- a/tests/describe/describe.c
+++ b/tests/describe/describe.c
@@ -39,7 +39,7 @@ void test_describe_describe__cannot_describe_against_a_repo_with_no_ref(void)
cl_git_pass(git_reference_foreach(repo, delete_cb, NULL));
- cl_git_fail(git_describe_object(&buf, object, &opts));
+ cl_git_fail(git_describe_commit(&buf, object, &opts));
git_object_free(object);
git_buf_free(&buf);
diff --git a/tests/describe/describe_helpers.c b/tests/describe/describe_helpers.c
index aa2a54f9e..7235d320f 100644
--- a/tests/describe/describe_helpers.c
+++ b/tests/describe/describe_helpers.c
@@ -12,7 +12,7 @@ void assert_describe(
cl_git_pass(git_revparse_single(&object, repo, revparse_spec));
- cl_git_pass(git_describe_object(&label, object, opts));
+ cl_git_pass(git_describe_commit(&label, object, opts));
if (is_prefix_match)
cl_assert_equal_i(0, git__prefixcmp(git_buf_cstr(&label), expected_output));