Commit 9bf2314
setup: correctly reinitialize repository version
When reinitializing a repository, Git does not account for extensions
other than `objectformat` and `refstorage` when determining the
repository version. This can lead to a repository being downgraded to
version 0 if extensions are set, causing Git future operations to fail.
This patch teaches Git to check if other extensions are defined in the
config to ensure that the repository version is set correctly.
Signed-off-by: Caleb White <[email protected]>
Signed-off-by: Taylor Blau <[email protected]>1 parent ca27c05 commit 9bf2314
1 file changed
+23
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2204 | 2204 | | |
2205 | 2205 | | |
2206 | 2206 | | |
2207 | | - | |
2208 | | - | |
| 2207 | + | |
| 2208 | + | |
2209 | 2209 | | |
2210 | 2210 | | |
2211 | 2211 | | |
| |||
2216 | 2216 | | |
2217 | 2217 | | |
2218 | 2218 | | |
2219 | | - | |
2220 | | - | |
2221 | | - | |
2222 | | - | |
2223 | | - | |
2224 | | - | |
| 2219 | + | |
2225 | 2220 | | |
2226 | 2221 | | |
2227 | 2222 | | |
| |||
2234 | 2229 | | |
2235 | 2230 | | |
2236 | 2231 | | |
| 2232 | + | |
| 2233 | + | |
| 2234 | + | |
| 2235 | + | |
| 2236 | + | |
| 2237 | + | |
| 2238 | + | |
| 2239 | + | |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
| 2243 | + | |
| 2244 | + | |
| 2245 | + | |
| 2246 | + | |
| 2247 | + | |
| 2248 | + | |
| 2249 | + | |
| 2250 | + | |
2237 | 2251 | | |
2238 | 2252 | | |
2239 | 2253 | | |
| |||
2333 | 2347 | | |
2334 | 2348 | | |
2335 | 2349 | | |
2336 | | - | |
| 2350 | + | |
2337 | 2351 | | |
2338 | 2352 | | |
2339 | 2353 | | |
| |||
0 commit comments