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: user:token@github.com
IPv4 address: 140.82.112.4
{"@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:45Z","url":"https://github.com/gitpython-developers/GitPython/issues/1982"}
| 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:e7f87701-7afa-d073-4d0e-491b39f7ac2e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9838:2E0249:11E2EA5:17BD4A2:6B065878 |
| html-safe-nonce | a6d6edd8340c6d7748df847b1028957ffe97b6624e400ded40508d4aeda31e6c |
| visitor-payload | eyJyZWZlcnJlciI6bnVsbCwicmVxdWVzdF9pZCI6Ijk4Mzg6MkUwMjQ5OjExRTJFQTU6MTdCRDRBMjo2QjA2NTg3OCIsInZpc2l0b3JfaWQiOiI3NDkxODY4ODMyNDAwMDM4MDA4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiY2VudHJhbHVzIn0= |
| visitor-hmac | ccf5966c0500f53bc2de3c799da1c31c46b5843c4953cb9e24e88bef6d31ac83 |
| 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 | 6324e6ac990fb6befbec840cc0e102a1071c339bfe8f9826bb12de2e3ba1d297 |
| 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 | 7f0aa75f4141d440c6110dc31af7ea7797abb6c4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width