Title: `repo.submodule('sort')` returns reference to IterableList.sort() method, not Submodule instance · Issue #1091 · gitpython-developers/GitPython · GitHub
Open Graph Title: `repo.submodule('sort')` returns reference to IterableList.sort() method, not Submodule instance · Issue #1091 · gitpython-developers/GitPython
X Title: `repo.submodule('sort')` returns reference to IterableList.sort() method, not Submodule instance · Issue #1091 · gitpython-developers/GitPython
Description: Check out toy example repo w/ 2 submodules (named generate-random-ints and sort): git clone --recurse-submodules https://gitlab.com/gsmo/examples/submodule-demo.git cd submodule-demo git checkout e6f6d8f git submodule update python In Py...
Open Graph Description: Check out toy example repo w/ 2 submodules (named generate-random-ints and sort): git clone --recurse-submodules https://gitlab.com/gsmo/examples/submodule-demo.git cd submodule-demo git checkout e...
X Description: Check out toy example repo w/ 2 submodules (named generate-random-ints and sort): git clone --recurse-submodules https://gitlab.com/gsmo/examples/submodule-demo.git cd submodule-demo git checkout e...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/1091
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`repo.submodule('sort')` returns reference to IterableList.sort() method, not Submodule instance","articleBody":"Check out toy example repo w/ 2 submodules (named `generate-random-ints` and `sort`):\r\n```bash\r\ngit clone --recurse-submodules https://gitlab.com/gsmo/examples/submodule-demo.git\r\ncd submodule-demo\r\ngit checkout e6f6d8f\r\ngit submodule update\r\npython\r\n```\r\nIn Python REPL:\r\n```python\r\nimport git\r\nrepo = git.Repo()\r\nrepo.submodule('sort')\r\n# \u003cbuilt-in method sort of IterableList object at 0x1058a7360>\r\nrepo.submodule('generate-random-ints')\r\n# git.Submodule(name=generate-random-ints, path=generate-random-ints, url=https://gitlab.com/gsmo/examples/submodules/generate-random-ints.git, branch_path=refs/heads/master)\r\n```\r\n\r\nThe submodule named `sort` can't be retrieved, as its name is shadowed by the `IterableList.sort` method.","author":{"url":"https://github.com/ryan-williams","@type":"Person","name":"ryan-williams"},"datePublished":"2020-11-26T15:51:24Z","url":"https://github.com/gitpython-developers/GitPython/issues/1091"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:67d7dfb2-fc50-5bd9-94fa-b99fc0d4ac35 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AC5C:3DD488:C98220:100B034:6B0100BA |
| html-safe-nonce | 44e9b084ed994b6b2854d4b058bd489fcd3c493b4007775a37f748eb0dbe4044 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzVDOjNERDQ4ODpDOTgyMjA6MTAwQjAzNDo2QjAxMDBCQSIsInZpc2l0b3JfaWQiOiIxMDk4NjE2MDY0NDY1NTAyMzk0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4c657542d988a129ee87187594d0693ba0c4b621177bffc3883aebca0699928e |
| hovercard-subject-tag | issue:751691508 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/gitpython-developers/GitPython/1091/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ce696e2f66574a87c52e23a1f8cfc8164c2255435d1589bae26132d2942ca300/gitpython-developers/GitPython/issues/1091 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ce696e2f66574a87c52e23a1f8cfc8164c2255435d1589bae26132d2942ca300/gitpython-developers/GitPython/issues/1091 |
| og:image:alt | Check out toy example repo w/ 2 submodules (named generate-random-ints and sort): git clone --recurse-submodules https://gitlab.com/gsmo/examples/submodule-demo.git cd submodule-demo git checkout e... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ryan-williams |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width