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: redirect.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:9a0bb2f6-9a50-ca01-b6c1-1021fc9e64f2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BC4C:34A143:11A145A:17B51B8:6969A8C0 |
| html-safe-nonce | 37ed2cff8d627962db5febc5976c1cfed5b5c1da8aca4385923e542d25dafda7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzRDOjM0QTE0MzoxMUExNDVBOjE3QjUxQjg6Njk2OUE4QzAiLCJ2aXNpdG9yX2lkIjoiOTMzNTk5NjAyNzAwNTYwNTc3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6b52503f9a2c0e8f5d445bbf186c544abbe1aaaf533dfb06f98f309ea0edeea7 |
| 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 | 24c4c97a2d520cb286b35e1a4c22d7a4df3c26a2fa28dd7cdf0e65db327b4de7 |
| 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 | 124667f43168afb6c9c03b7c02eb5b1d2e1be3d9 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width