Title: submodule update doesn't work with relative submodule paths (in GitPython 2.1.14) · Issue #944 · gitpython-developers/GitPython · GitHub
Open Graph Title: submodule update doesn't work with relative submodule paths (in GitPython 2.1.14) · Issue #944 · gitpython-developers/GitPython
X Title: submodule update doesn't work with relative submodule paths (in GitPython 2.1.14) · Issue #944 · gitpython-developers/GitPython
Description: When using the git.objects.submodules.base.Submodule.update method (https://gitpython.readthedocs.io/en/stable/reference.html#git.objects.submodule.base.Submodule.update), the git python module seems to fake a git submodule call with git...
Open Graph Description: When using the git.objects.submodules.base.Submodule.update method (https://gitpython.readthedocs.io/en/stable/reference.html#git.objects.submodule.base.Submodule.update), the git python module see...
X Description: When using the git.objects.submodules.base.Submodule.update method (https://gitpython.readthedocs.io/en/stable/reference.html#git.objects.submodule.base.Submodule.update), the git python module see...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/944
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"submodule update doesn't work with relative submodule paths (in GitPython 2.1.14)","articleBody":"When using the git.objects.submodules.base.Submodule.update method (https://gitpython.readthedocs.io/en/stable/reference.html#git.objects.submodule.base.Submodule.update), the git python module seems to fake a `git submodule` call with `git clone`. It executes ```git clone -n --separate-git-dir=\u003cworkspace\u003e/.git/modules/\u003csubmodule_path\u003e -v \u003csubmodule_url\u003e \u003cworkspace\u003e/\u003csubmodule_path\u003e```. This command doesn't work when a submodule is specified as a relative path in the `.gitmodules` path. For example:\r\n```\r\n[submodule \"main_project/submodule\"]\r\n path = main_project/submodule\r\n url = ../../other_project/some_module.git\r\n```\r\nThe `git.objects.submodules.base.Submodule.update` then fails with `repository '../../other_project/some_module.git' does not exist.\r\n\r\nThe regular `git submodule` command is able to resolve the paths.\r\n","author":{"url":"https://github.com/Genovese-martijn","@type":"Person","name":"Genovese-martijn"},"datePublished":"2019-10-18T09:11:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":14},"url":"https://github.com/944/GitPython/issues/944"}
| 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:fe0416c2-aad1-ccaa-850c-c3d04ada4c61 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A2F8:B2631:2E74B:3E557:69684E5E |
| html-safe-nonce | 9363297751d8c716e174dbc9e1ace199983f90abc12fc1e88054f999c4f982ce |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMkY4OkIyNjMxOjJFNzRCOjNFNTU3OjY5Njg0RTVFIiwidmlzaXRvcl9pZCI6IjEzNjYwNDI1MzM4MzY2Mzk4MzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f9766a1f4913fa3aeeaeb11d1d387124e932a7cbdf1ef63da9185f27dc16e222 |
| hovercard-subject-tag | issue:508953552 |
| 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/944/issue_layout |
| twitter:image | https://opengraph.githubassets.com/afcf1156bd503e1bd87fd36669f08874bfe4ee45e1406fce9a46643ba405b772/gitpython-developers/GitPython/issues/944 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/afcf1156bd503e1bd87fd36669f08874bfe4ee45e1406fce9a46643ba405b772/gitpython-developers/GitPython/issues/944 |
| og:image:alt | When using the git.objects.submodules.base.Submodule.update method (https://gitpython.readthedocs.io/en/stable/reference.html#git.objects.submodule.base.Submodule.update), the git python module see... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Genovese-martijn |
| hostname | github.com |
| expected-hostname | github.com |
| None | f16c57f41ed243e5b4dfe9b9bcd6828bd83080b1b6dbb4ff239bbe9745f12e0c |
| 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 | cfa7062cc6d4fe8fcb156bd33f4c97bd3b2470af |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width