Title: difficult error when fetching remote refs · Issue #1982 · gitpython-developers/GitPython · GitHub
Open Graph Title: difficult error when fetching remote refs · Issue #1982 · gitpython-developers/GitPython
X Title: difficult error when fetching remote refs · Issue #1982 · gitpython-developers/GitPython
Description: Hello! I am running into an error when I try to fetch some refs from the remote of my repository. I have spent some time in the GitPython docs but am still unable to work my head around where I could be going wrong, thus I am opening the...
Open Graph Description: Hello! I am running into an error when I try to fetch some refs from the remote of my repository. I have spent some time in the GitPython docs but am still unable to work my head around where I cou...
X Description: Hello! I am running into an error when I try to fetch some refs from the remote of my repository. I have spent some time in the GitPython docs but am still unable to work my head around where I cou...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/1982
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"difficult error when fetching remote refs","articleBody":"Hello! \r\n\r\nI am running into an error when I try to fetch some refs from the remote of my repository. I have spent some time in the GitPython docs but am still unable to work my head around where I could be going wrong, thus I am opening the ticket. \r\n\r\nI'm running into issues with the line below, where repo is a git.Repo instance.\r\n``\r\nrepo.remote().fetch('refs/pull/*/merge:refs/pull/*/merge')\r\n`` \r\nI have pasted the partial traceback below: \r\n\r\n```\r\n File \"collating_prs.py\", line 12, in get_prs\r\n results = repo.remote().fetch('refs/pull/*/merge:refs/pull/*/merge')\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\nFile \"lib/python3.11/site-packages/git/remote.py\", line 1069, in fetch\r\n res = self._get_fetch_info_from_stderr(proc, progress, kill_after_timeout=kill_after_timeout)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/lib/python3.11/site-packages/git/remote.py\", line 895, in _get_fetch_info_from_stderr\r\n proc.wait(stderr=stderr_text)\r\n File \"/lib/python3.11/site-packages/git/cmd.py\", line 834, in wait\r\n raise GitCommandError(remove_password_if_present(self.args), status, errstr)\r\ngit.exc.GitCommandError: Cmd('git') failed due to: exit code(1)\r\n cmdline: git fetch -v -- origin refs/pull/*/merge:refs/pull/*/merge\r\n```\r\nIn a bash terminal, the command ``git fetch -v -- origin refs/pull/*/merge:refs/pull/*/merge`` works and returns the refs that I am trying to fetch. \r\n\r\nI'm not quire sure where to start looking at this and would appreciate any guidance. Thank you for your help!\r\n\r\n","author":{"url":"https://github.com/mjgaughan","@type":"Person","name":"mjgaughan"},"datePublished":"2024-12-10T03:50:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1982/GitPython/issues/1982"}
| 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:fe7312f0-e472-1fef-439d-edd8309478d7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A370:279B15:755FB3:A04DEC:6969DAC1 |
| html-safe-nonce | 309e611886445150ac2fbcf9dbb4f3ad057f1ac7091fa52652abc688f8396692 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzcwOjI3OUIxNTo3NTVGQjM6QTA0REVDOjY5NjlEQUMxIiwidmlzaXRvcl9pZCI6IjU4MjcyNzQ3NzQxNDM0MjUyMTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7b21aadf05fec6114aa529157cd74b4051da719b3593757d3588cb020a4aca77 |
| hovercard-subject-tag | issue:2728921013 |
| 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/1982/issue_layout |
| twitter:image | https://opengraph.githubassets.com/db43ec1ca2bdccf4e5288d554fa4c978d7fc71c61432313f35fe892e3e648bff/gitpython-developers/GitPython/issues/1982 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/db43ec1ca2bdccf4e5288d554fa4c978d7fc71c61432313f35fe892e3e648bff/gitpython-developers/GitPython/issues/1982 |
| og:image:alt | Hello! I am running into an error when I try to fetch some refs from the remote of my repository. I have spent some time in the GitPython docs but am still unable to work my head around where I cou... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mjgaughan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| 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 | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width