Title: Attempting to remove tag results in exception · Issue #260 · gitpython-developers/GitPython · GitHub
Open Graph Title: Attempting to remove tag results in exception · Issue #260 · gitpython-developers/GitPython
X Title: Attempting to remove tag results in exception · Issue #260 · gitpython-developers/GitPython
Description: I am attempting to use GitPython to remove a tag from a local clone which does not exist in the remote repo. After fetching a remote, remote.stale_refs shows the following stale tag:
Open Graph Description: I am attempting to use GitPython to remove a tag from a local clone which does not exist in the remote repo. After fetching a remote, remote.stale_refs shows the following stale tag: X Description: I am attempting to use GitPython to remove a tag from a local clone which does not exist in the remote repo. After fetching a remote, remote.stale_refs shows the following stale tag: <git.Remote...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/260
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Attempting to remove tag results in exception","articleBody":"I am attempting to use GitPython to remove a tag from a local clone which does not exist in the remote repo. After fetching a remote, remote.stale_refs shows the following stale tag: `\u003cgit.RemoteReference \"refs/remotes/refs/tags/new_tag\"\u003e`. This already seems to be a problem, as the path to the tag should be `refs/tags/new_tag`. When I run `ref.delete(repo, ref)` (where `ref` is the `git.RemoteReference` and `repo` is its corresponding `git.Repo` instance), I get the following exception:\n\n```\nGitCommandError: 'git branch -d -r refs/tags/new_tag' returned exit status 1: error: remote branch 'refs/tags/new_tag' not found.\n```\n\nAdditionally, `ref.name` is set to `refs/tags/new_tag`, so at least that much looks correct.\n\nMy GitPython version is **0.3.2.1**. I have not yet had a chance to test with a newer version.\n","author":{"url":"https://github.com/terminalmage","@type":"Person","name":"terminalmage"},"datePublished":"2015-02-20T04:02:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/260/GitPython/issues/260"}
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:e3a218e0-2473-ea7f-bc49-5866ca1f3e1f current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id CBCC:102115:238702D:31F4C12:6969128B html-safe-nonce d76371b798a7bb5821500d1535874a37bb6fc92da9ffe821f148c791e9b1645a visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkNDOjEwMjExNToyMzg3MDJEOjMxRjRDMTI6Njk2OTEyOEIiLCJ2aXNpdG9yX2lkIjoiMjg1MjgxOTgwMDY0MTA0OTIyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 visitor-hmac e3febf165d674da12ba907d3c7b601fe74dfe9e38418cbc5ce17de46717b16d2 hovercard-subject-tag issue:58307936 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/260/issue_layout twitter:image https://opengraph.githubassets.com/e41ee251a261e355a9c7c0f118a9b47be8eb94fe44c787725b39d035b2b9067b/gitpython-developers/GitPython/issues/260 twitter:card summary_large_image og:image https://opengraph.githubassets.com/e41ee251a261e355a9c7c0f118a9b47be8eb94fe44c787725b39d035b2b9067b/gitpython-developers/GitPython/issues/260 og:image:alt I am attempting to use GitPython to remove a tag from a local clone which does not exist in the remote repo. After fetching a remote, remote.stale_refs shows the following stale tag: og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username terminalmage hostname github.com expected-hostname github.com None afd5814870f8609d217a32dd3bccc05a5df5f5699df4d458c242e80fdfddcc2e 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 572e69339f2401a569f15071214cbbee314ea8bb ui-target full theme-color #1e2327 color-scheme light dark
URLs of crawlers that visited me.