Commit 06eacb91 by Yuang Li

fix graft assertion

parent 9d1507d1
...@@ -1315,7 +1315,7 @@ int git_repository_set_index(git_repository *repo, git_index *index) ...@@ -1315,7 +1315,7 @@ int git_repository_set_index(git_repository *repo, git_index *index)
int git_repository_grafts__weakptr(git_grafts **out, git_repository *repo) int git_repository_grafts__weakptr(git_grafts **out, git_repository *repo)
{ {
assert(out && repo && repo->shallow_grafts); assert(out && repo && repo->grafts);
*out = repo->grafts; *out = repo->grafts;
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment