mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-28 17:46:09 +00:00
index: prefer INDEX_OWNER usage
This commit is contained in:
parent
33f95a9b32
commit
95d73de15f
@ -471,7 +471,7 @@ int git_index_write_tree(git_oid *oid, git_index *index)
|
||||
|
||||
assert(oid && index);
|
||||
|
||||
repo = (git_repository *)GIT_REFCOUNT_OWNER(index);
|
||||
repo = INDEX_OWNER(index);
|
||||
|
||||
if (repo == NULL)
|
||||
return create_index_error(-1, "Failed to write tree. "
|
||||
|
Loading…
Reference in New Issue
Block a user