René's URL Explorer Experiment


Title: PushInfo is documented to return a local reference, but a pushed commit need not be a reference · Issue #1624 · gitpython-developers/GitPython · GitHub

Open Graph Title: PushInfo is documented to return a local reference, but a pushed commit need not be a reference · Issue #1624 · gitpython-developers/GitPython

X Title: PushInfo is documented to return a local reference, but a pushed commit need not be a reference · Issue #1624 · gitpython-developers/GitPython

Description: Hi! It is a perhaps little known fact that one can use git push to push something that is not a reference, with syntax like git push 1a2b3c4d:refs/heads/remotebranch This is possible with GitPython, but subtly broken. The Repo.push() com...

Open Graph Description: Hi! It is a perhaps little known fact that one can use git push to push something that is not a reference, with syntax like git push 1a2b3c4d:refs/heads/remotebranch This is possible with GitPython...

X Description: Hi! It is a perhaps little known fact that one can use git push to push something that is not a reference, with syntax like git push 1a2b3c4d:refs/heads/remotebranch This is possible with GitPython...

Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/1624

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PushInfo is documented to return a local reference, but a pushed commit need not be a reference","articleBody":"Hi!\r\n\r\nIt is a perhaps little known fact that one can use `git push` to push something that is not a reference, with syntax like\r\n\r\ngit push 1a2b3c4d:refs/heads/remotebranch\r\n\r\nThis is possible with GitPython, but subtly broken. The Repo.push() command technically succeeds, but returns a zero-length array and no errors.\r\n\r\nThis is because when building a PushInfo struct, GitPython expects the local commit that is pushed to be a reference, and this is not always true. When unable to convert the local commit into a reference, GitPython simply gives up and doesn't build that PushInfo.\r\n\r\nFixing this would be relatively trivial, and I'd love to submit the patch to do it (props, by the way, for writing very straightforward and readable code.) The trouble is that this specific detail is documented:\r\n\r\n```\r\ninfo.local_ref      # Reference pointing to the local reference that was pushed\r\n                    # It is None if the ref was deleted.\r\n```\r\n\r\nand any change we do here would imply breaking the API. How should we deal with this? I'd be glad to implement whatever solution is decided on.","author":{"url":"https://github.com/zfigura","@type":"Person","name":"zfigura"},"datePublished":"2023-07-29T18:39:04Z","url":"https://github.com/gitpython-developers/GitPython/issues/1624"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:27c5a9a8-ba49-b015-858c-999ebb44003d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD6F2:3DEF55:1EEF38D:28C37B1:6B068A8E
html-safe-nonceb4e794a81c376814de3000104cceaa14d909b396642edcfbf1820ae8031a4194
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkYyOjNERUY1NToxRUVGMzhEOjI4QzM3QjE6NkIwNjhBOEUiLCJ2aXNpdG9yX2lkIjoiMzE0NDYyNzM5MDY1NjE4NzAyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacfbaac653a9b46897d431c599f2c59c059571b4a5ce94c772955250f05f7dea9c
hovercard-subject-tagissue:1827594671
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/gitpython-developers/GitPython/1624/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9b7c27d4f3f843c2589a5de81ecc933d725dca6dab1f5f402b987f6e8e4173b7/gitpython-developers/GitPython/issues/1624
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9b7c27d4f3f843c2589a5de81ecc933d725dca6dab1f5f402b987f6e8e4173b7/gitpython-developers/GitPython/issues/1624
og:image:altHi! It is a perhaps little known fact that one can use git push to push something that is not a reference, with syntax like git push 1a2b3c4d:refs/heads/remotebranch This is possible with GitPython...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamezfigura
hostnamegithub.com
expected-hostnamegithub.com
None4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a
turbo-cache-controlno-preview
go-importgithub.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git
octolytics-dimension-user_id503709
octolytics-dimension-user_logingitpython-developers
octolytics-dimension-repository_id1126087
octolytics-dimension-repository_nwogitpython-developers/GitPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1126087
octolytics-dimension-repository_network_root_nwogitpython-developers/GitPython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6d3909414814ff86ce7da4c51a0f4918a13fb41b
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/gitpython-developers/GitPython/issues/1624#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fissues%2F1624
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fissues%2F1624
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=gitpython-developers%2FGitPython
Reloadhttps://github.com/gitpython-developers/GitPython/issues/1624
Reloadhttps://github.com/gitpython-developers/GitPython/issues/1624
Reloadhttps://github.com/gitpython-developers/GitPython/issues/1624
gitpython-developershttps://github.com/gitpython-developers
GitPythonhttps://github.com/gitpython-developers/GitPython
Codehttps://github.com/gitpython-developers/GitPython
Issues1 (1)https://github.com/gitpython-developers/GitPython/issues
Pull requests2 (2)https://github.com/gitpython-developers/GitPython/pulls
Discussionshttps://github.com/gitpython-developers/GitPython/discussions
Actionshttps://github.com/gitpython-developers/GitPython/actions
Security and quality42 (42)https://github.com/gitpython-developers/GitPython/security
Insightshttps://github.com/gitpython-developers/GitPython/insights
https://github.com/gitpython-developers/GitPython
New issuehttps://github.com/login?return_to=https://github.com/gitpython-developers/GitPython/issues/1624
New issuehttps://github.com/login?return_to=https://github.com/gitpython-developers/GitPython/issues/1624
Taskhttps://github.com/gitpython-developers/GitPython/issues?q=type:"Task"
#2364https://github.com/gitpython-developers/GitPython/pull/2364
PushInfo is documented to return a local reference, but a pushed commit need not be a referencehttps://github.com/gitpython-developers/GitPython/issues/1624#top
#2364https://github.com/gitpython-developers/GitPython/pull/2364
acknowledgedhttps://github.com/gitpython-developers/GitPython/issues?q=state%3Aopen%20label%3A%22acknowledged%22
help wantedhttps://github.com/gitpython-developers/GitPython/issues?q=state%3Aopen%20label%3A%22help%20wanted%22
https://github.com/zfigura
zfigurahttps://github.com/zfigura
on Jul 29, 2023https://github.com/gitpython-developers/GitPython/issues/1624#issue-1827594671
Byronhttps://github.com/Byron
acknowledgedhttps://github.com/gitpython-developers/GitPython/issues?q=state%3Aopen%20label%3A%22acknowledged%22
help wantedhttps://github.com/gitpython-developers/GitPython/issues?q=state%3Aopen%20label%3A%22help%20wanted%22
on Jul 30, 2023https://github.com/gitpython-developers/GitPython/issues/1624#event-9956231166
https://github.com/Byron
Byronhttps://github.com/Byron
on Jul 30, 2023https://github.com/gitpython-developers/GitPython/issues/1624#issuecomment-1657058547
https://github.com/zfigura
zfigurahttps://github.com/zfigura
on Aug 2, 2023https://github.com/gitpython-developers/GitPython/issues/1624#issuecomment-1662526070
https://github.com/Byron
Byronhttps://github.com/Byron
on Aug 3, 2023https://github.com/gitpython-developers/GitPython/issues/1624#issuecomment-1663332965
Byronhttps://github.com/Byron
Taskhttps://github.com/gitpython-developers/GitPython/issues?q=type:"Task"
on Jul 20, 2026https://github.com/gitpython-developers/GitPython/issues/1624#event-28203321194
Byronhttps://github.com/Byron
not plannedhttps://github.com/gitpython-developers/GitPython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Jul 20, 2026https://github.com/gitpython-developers/GitPython/issues/1624#event-28203953386
Sign up for freehttps://github.com/signup?return_to=https://github.com/gitpython-developers/GitPython/issues/1624
Sign in to commenthttps://github.com/login?return_to=https://github.com/gitpython-developers/GitPython/issues/1624
acknowledgedhttps://github.com/gitpython-developers/GitPython/issues?q=state%3Aopen%20label%3A%22acknowledged%22
help wantedhttps://github.com/gitpython-developers/GitPython/issues?q=state%3Aopen%20label%3A%22help%20wanted%22
Taskhttps://github.com/gitpython-developers/GitPython/issues?q=type:"Task"
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.