Commit 95d73de15fd25b543e4162599d095ba45f726158

nulltoken 2012-11-10T21:10:49

index: prefer INDEX_OWNER usage

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/index.c b/src/index.c
index c68d0dc..fed067c 100644
--- a/src/index.c
+++ b/src/index.c
@@ -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. "