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: togithub.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:834e992a-7033-4070-ca10-fd9be4eee9e7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D85E:357F62:194388:239CA7:696A3AF9 |
| html-safe-nonce | 2da5ed38dd77d866b42b2c43cf9a896e24c6181d08047c73ffb029baacd7194a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODVFOjM1N0Y2MjoxOTQzODg6MjM5Q0E3OjY5NkEzQUY5IiwidmlzaXRvcl9pZCI6IjMyNzkwMjY4MTI5MjU2NTU4MDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d12b26e3817a639db115d22e56e54468390571199556c418b1530a8155a118c4 |
| 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 | 321736bfdb3f591415ae895a0459bec204b26a76caf47ba5c980634cfacc4538 |
| 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 | 13581a31d51edf4a3aca179e10890a4d4f9b6d76 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width