summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2012-02-16 04:22:56 -0800
committerVicent Martí <vicent@github.com>2012-02-16 04:22:56 -0800
commit555c81f3356b8166c09f887450eac008b221cdc3 (patch)
tree88f84217747ad3502a46e4d139f31cb9fbb380aa
parent6117895fef92ddd08c437ce5a7cdc4bf56754cc3 (diff)
parent0691966a738086750f784d5b0b949c5cf0235427 (diff)
downloadlibgit2-555c81f3356b8166c09f887450eac008b221cdc3.tar.gz
Merge pull request #563 from schu/notes-fixup
notes: fix assert
-rw-r--r--src/notes.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/notes.c b/src/notes.c
index 81fc00361..68554c36f 100644
--- a/src/notes.c
+++ b/src/notes.c
@@ -304,7 +304,7 @@ int git_note_read(git_note **out, git_repository *repo,
if (error < GIT_SUCCESS)
return git__rethrow(error, "Failed to lookup reference `%s`", notes_ref);
- assert(git_ref_type(ref) == GIT_REF_OID);
+ assert(git_reference_type(ref) == GIT_REF_OID);
sha = git_reference_oid(ref);
error = git_commit_lookup(&commit, repo, sha);
@@ -347,7 +347,7 @@ int git_note_create(git_oid *out, git_repository *repo,
return git__rethrow(error, "Failed to lookup reference `%s`", notes_ref);
if (error == GIT_SUCCESS) {
- assert(git_ref_type(ref) == GIT_REF_OID);
+ assert(git_reference_type(ref) == GIT_REF_OID);
/* lookup existing notes tree oid */
@@ -393,7 +393,7 @@ int git_note_remove(git_repository *repo, const char *notes_ref,
if (error < GIT_SUCCESS)
return git__rethrow(error, "Failed to lookup reference `%s`", notes_ref);
- assert(git_ref_type(ref) == GIT_REF_OID);
+ assert(git_reference_type(ref) == GIT_REF_OID);
git_oid_cpy(&sha, git_reference_oid(ref));
git_reference_free(ref);