diff options
author | Patrick Steinhardt <ps@pks.im> | 2020-06-30 10:13:26 +0200 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2020-07-12 16:01:21 +0200 |
commit | 349874474896d69979338961ee5813c146f561fb (patch) | |
tree | bbc47294d6f8a231c5a55140455dbb29f116e6ab /src/commit.c | |
parent | b895547ca135158bf1582b50f6c09f8f78066e87 (diff) | |
download | libgit2-pks/refdb-refactorings.tar.gz |
refdb: avoid unlimited spinning in case of symref cyclespks/refdb-refactorings
To determine whether another reflog entry needs to be written for HEAD
on a reference update, we need to see whether HEAD directly or
indirectly points to the reference we're updating. The resolve logic is
currently completely unbounded except an error occurs, which effectively
means that we'd be spinning forever in case we have a symref loop in the
repository refdb.
Let's fix the issue by using `git_refdb_resolve` instead, which is
always bounded.
Diffstat (limited to 'src/commit.c')
0 files changed, 0 insertions, 0 deletions