mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-28 15:37:16 +00:00
index_read_index: set flags for path_len correctly
Update the flags to reset the path_len (to emulate `index_insert`)
This commit is contained in:
parent
e755f79fd7
commit
80745b1256
@ -2999,6 +2999,9 @@ int git_index_read_index(
|
|||||||
if (dup_entry) {
|
if (dup_entry) {
|
||||||
if ((error = index_entry_dup_nocache(&add_entry, index, dup_entry)) < 0)
|
if ((error = index_entry_dup_nocache(&add_entry, index, dup_entry)) < 0)
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
|
index_entry_adjust_namemask(add_entry,
|
||||||
|
((struct entry_internal *)add_entry)->pathlen);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (add_entry) {
|
if (add_entry) {
|
||||||
|
Loading…
Reference in New Issue
Block a user