Commit eafcc6d
midx: use real paths in lookup_multi_pack_index()
This helper looks for a parsed multi-pack-index whose object directory
matches the given object_dir. Before going into the loop over the parsed
multi-pack-indexes, it calls find_odb() to ensure that the given
object_dir is actually a known object directory.
However, find_odb() uses real-path manipulations to compare the input to
the alternate directories. This same real-path comparison is not used in
the loop, leading to potential issues with the strcmp().
Update the method to use the real-path values instead.
Signed-off-by: Derrick Stolee <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent d516b2d commit eafcc6d
1 file changed
+13
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1113 | 1113 | | |
1114 | 1114 | | |
1115 | 1115 | | |
| 1116 | + | |
1116 | 1117 | | |
| 1118 | + | |
| 1119 | + | |
1117 | 1120 | | |
1118 | 1121 | | |
1119 | | - | |
| 1122 | + | |
1120 | 1123 | | |
1121 | 1124 | | |
1122 | | - | |
1123 | | - | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
1124 | 1130 | | |
1125 | 1131 | | |
1126 | | - | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
1127 | 1136 | | |
1128 | 1137 | | |
1129 | 1138 | | |
| |||
0 commit comments