diff options
author | Yuang Li <yuangli@uk-yuangli-l.dhcp.mathworks.com> | 2022-06-28 11:23:59 +0100 |
---|---|---|
committer | Yuang Li <yuangli@uk-yuangli-l.dhcp.mathworks.com> | 2022-06-28 11:23:59 +0100 |
commit | 06eacb91679f4d7c828c64c71081500219926f22 (patch) | |
tree | 2f9921f5cdb7ba827de3b0b3483690fec04da93d | |
parent | 9d1507d1d36d640669d82f80d2b0151e11dbab2f (diff) | |
download | libgit2-06eacb91679f4d7c828c64c71081500219926f22.tar.gz |
fix graft assertion
-rw-r--r-- | src/repository.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repository.c b/src/repository.c index 87874fece..ab5753795 100644 --- a/src/repository.c +++ b/src/repository.c @@ -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) { - assert(out && repo && repo->shallow_grafts); + assert(out && repo && repo->grafts); *out = repo->grafts; return 0; } |