diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2021-09-08 01:42:28 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-09-07 22:41:09 -0700 |
commit | 5dc16756b220429ca91cbf263b936764f83cd4bb (patch) | |
tree | 2367982a35834fedb830ea28d46c0c216b320daf /Documentation/git-credential-cache--daemon.txt | |
parent | unpack-trees: fix nested sparse-dir search (diff) | |
download | tgif-5dc16756b220429ca91cbf263b936764f83cd4bb.tar.xz |
sparse-index: silently return when cache tree fails
If cache_tree_update() returns a non-zero value, then it could not
create the cache tree. This is likely due to a path having a merge
conflict. Since we are already returning early, let's return silently to
avoid making it seem like we failed to write the index at all.
If we remove our dependence on the cache tree within
convert_to_sparse(), then we could still recover from this scenario and
have a sparse index.
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Reviewed-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-credential-cache--daemon.txt')
0 files changed, 0 insertions, 0 deletions