Skip to content

Commit

Permalink
following latest libgit2 API: use git_oid_tostr instead ofr git_oid_t…
Browse files Browse the repository at this point in the history
…o_string.
  • Loading branch information
chobie committed Mar 11, 2012
1 parent fb3b2ae commit 4bf67ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php_git2.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ static inline void create_tree_entry_from_entry(zval **object, git_tree_entry *e

m_entry->entry = entry;
oid = git_tree_entry_id(entry);
git_oid_to_string(buf,GIT_OID_HEXSZ,oid);
git_oid_tostr(buf,GIT_OID_HEXSZ,oid);

add_property_string(*object, "name", (char *)git_tree_entry_name(entry), 1);
add_property_string(*object, "oid", buf, 1);
Expand Down

0 comments on commit 4bf67ea

Please sign in to comment.