Commit 72f6d6d
authored
Fix infinite loop in packfile MRU after prefetch packs are added (#822)
This fixup updates b46ad0a (gvfs-helper: create tool to fetch objects
using the GVFS Protocol, 2019-08-13) in reaction to f6f236d
(packfile: refactor `install_packed_git()` to work on packfile store,
2025-09-23) which is included in Git 2.52.0.
This PR is organized to fixup the commit mentioned above and to drop
4e743e6 (packfile: add install_packed_git_and_mru(), 2019-09-25) now
that the packfile method is no longer used.
The refactored packfile store includes an automatic inclusion of new
packifles into the MRU list. This introduces a bug in microsoft/git's
use of the GVFS protocol in the following scenario in 'git fetch':
1. If the prefetch downloads at least one prefetch packfile, then it is
added to the MRU list twice, creating an infinite loop.
2. If the refs that are updated include commits that are not present in
the packfile list, then the MRU lookup will iterate through without
interruption, hitting the infinite loop.
The fix is to modify this patch to no longer include a custom "add to
MRU" method now that the default implementation does this for us.
* [X] This change only applies to interactions with Azure DevOps and the
GVFS Protocol.3 files changed
+1
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
| 219 | + | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
792 | 792 | | |
793 | 793 | | |
794 | 794 | | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | | - | |
799 | | - | |
800 | | - | |
801 | | - | |
802 | | - | |
803 | 795 | | |
804 | 796 | | |
805 | 797 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | 138 | | |
146 | 139 | | |
147 | 140 | | |
| |||
0 commit comments