Title: fix: make `submodule.update()` after `submodule.deinit()` work by Byron · Pull Request #2175 · gitpython-developers/GitPython · GitHub
Open Graph Title: fix: make `submodule.update()` after `submodule.deinit()` work by Byron · Pull Request #2175 · gitpython-developers/GitPython
X Title: fix: make `submodule.update()` after `submodule.deinit()` work by Byron · Pull Request #2175 · gitpython-developers/GitPython
Description: Git's submodule deinit command removes the submodule checkout but retains its repository under the parent repository's .git/modules directory. Submodule.update() previously treated the missing checkout as a completely uninitialized submodule and attempted to clone it again. The clone could not reuse the existing module repository, preventing a deinitialized submodule from being initialized again through GitPython. Detect a valid retained repository before entering the clone path. Restore the checkout's .git file and the module repository's worktree configuration, reset the retained repository to recreate its index and working tree, and restore the submodule URL in the parent configuration. Continue using the existing clone behavior when no valid retained repository is available. Tasks refackiew
Open Graph Description: Git's submodule deinit command removes the submodule checkout but retains its repository under the parent repository's .git/modules directory. Submodule.update() previously treated the miss...
X Description: Git's submodule deinit command removes the submodule checkout but retains its repository under the parent repository's .git/modules directory. Submodule.update() previously treated ...
Opengraph URL: https://github.com/gitpython-developers/GitPython/pull/2175
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:18626e9c-991a-7ab1-a768-af98ab8bef1b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DBA4:149710:1158C5:18B3D6:6A636320 |
| html-safe-nonce | 0a96e3b53bafbb20492ff400099b364fefe0435e35e4dd8b4dded7577346e38b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkE0OjE0OTcxMDoxMTU4QzU6MThCM0Q2OjZBNjM2MzIwIiwidmlzaXRvcl9pZCI6IjU4MzY3MTc0NDg3Mzg1OTU2MTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 98d041ddf6b5782779be5866d447d5652d62d32aaed95bf11b7962a242d67d42 |
| hovercard-subject-tag | pull_request:4065973753 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/gitpython-developers/GitPython/pull/2175/files |
| twitter:image | https://avatars.githubusercontent.com/u/63622?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/63622?s=400&v=4 |
| og:image:alt | Git's submodule deinit command removes the submodule checkout but retains its repository under the parent repository's .git/modules directory. Submodule.update() previously treated the miss... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 669d3fcd704a169521d2b6431762f95a6878a9e8ccaf0fd5f2d0802fc5b971f9 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126087 |
| octolytics-dimension-repository_nwo | gitpython-developers/GitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126087 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/GitPython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 20da292f132ff51328be50073854259f417052c1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width