Commit 9167c145 by Edward Thomson

index_read_index: set flags for path_len correctly

Update the flags to reset the path_len (to emulate `index_insert`)
parent 046ec3c9
......@@ -2999,6 +2999,9 @@ int git_index_read_index(
if (dup_entry) {
if ((error = index_entry_dup_nocache(&add_entry, index, dup_entry)) < 0)
goto done;
index_entry_adjust_namemask(add_entry,
((struct entry_internal *)add_entry)->pathlen);
}
if (add_entry) {
......
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