René's URL Explorer Experiment


Title: feature: fetch tag pointing to HEAD in shallow clone by gnought · Pull Request #3617 · pre-commit/pre-commit · GitHub

Open Graph Title: feature: fetch tag pointing to HEAD in shallow clone by gnought · Pull Request #3617 · pre-commit/pre-commit

X Title: feature: fetch tag pointing to HEAD in shallow clone by gnought · Pull Request #3617 · pre-commit/pre-commit

Description: pre-commit shallow clones do not fetch tags, which leads to errors when a repository depends on tag metadata (see golangci/golangci-lint#6347). This PR adds logic to resolve and fetch the remote tag associated with FETCH_HEAD when present.

Open Graph Description: pre-commit shallow clones do not fetch tags, which leads to errors when a repository depends on tag metadata (see golangci/golangci-lint#6347). This PR adds logic to resolve and fetch the remote ta...

X Description: pre-commit shallow clones do not fetch tags, which leads to errors when a repository depends on tag metadata (see golangci/golangci-lint#6347). This PR adds logic to resolve and fetch the remote ta...

Opengraph URL: https://github.com/pre-commit/pre-commit/pull/3617

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.4

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:164dc823-ad12-eb21-2daa-047dcaa80a27
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB1CC:3CF9BE:404D62:578BB1:6B067B17
html-safe-nonceb17583a827259b7fddbcedfb2da9e84b8b4d35a849f1abe536d7c36a96c7a49b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMUNDOjNDRjlCRTo0MDRENjI6NTc4QkIxOjZCMDY3QjE3IiwidmlzaXRvcl9pZCI6IjczOTE1NDQwNzMyOTI2NjQ1NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7a85543526cf97ec5b9c0f418c3de64de201deb967a09f734aedac6d274ac5d7
hovercard-subject-tagpull_request:3255457330
github-keyboard-shortcutsrepository,commits,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/pre-commit/pre-commit/pull/3617/files
twitter:imagehttps://avatars.githubusercontent.com/u/1684105?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1684105?s=400&v=4
og:image:altpre-commit shallow clones do not fetch tags, which leads to errors when a repository depends on tag metadata (see golangci/golangci-lint#6347). This PR adds logic to resolve and fetch the remote ta...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/pre-commit/pre-commit git https://github.com/pre-commit/pre-commit.git
octolytics-dimension-user_id6943086
octolytics-dimension-user_loginpre-commit
octolytics-dimension-repository_id17689377
octolytics-dimension-repository_nwopre-commit/pre-commit
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id17689377
octolytics-dimension-repository_network_root_nwopre-commit/pre-commit
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
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

Links:

Skip to contenthttps://github.com/pre-commit/pre-commit/pull/3617/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpre-commit%2Fpre-commit%2Fpull%2F3617%2Ffiles
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%2Fpre-commit%2Fpre-commit%2Fpull%2F3617%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=pre-commit%2Fpre-commit
Reloadhttps://github.com/pre-commit/pre-commit/pull/3617/files
Reloadhttps://github.com/pre-commit/pre-commit/pull/3617/files
Reloadhttps://github.com/pre-commit/pre-commit/pull/3617/files
pre-commithttps://github.com/pre-commit
pre-commithttps://github.com/pre-commit/pre-commit
Codehttps://github.com/pre-commit/pre-commit
Issues17 (17)https://github.com/pre-commit/pre-commit/issues
Pull requests8 (8)https://github.com/pre-commit/pre-commit/pulls
Actionshttps://github.com/pre-commit/pre-commit/actions
Security and qualityhttps://github.com/pre-commit/pre-commit/security
Insightshttps://github.com/pre-commit/pre-commit/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fpre-commit%2Fpre-commit%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpre-commit%2Fpre-commit%2Fissues%2Fnew%2Fchoose
gnoughthttps://github.com/gnought
pre-commit:mainhttps://github.com/pre-commit/pre-commit/tree/main
gnought:feat/shadow-clone-fetch-taghttps://github.com/gnought/pre-commit/tree/feat/shadow-clone-fetch-tag
Conversation 8 https://github.com/pre-commit/pre-commit/pull/3617
Commits 7 https://github.com/pre-commit/pre-commit/pull/3617/commits
Checks 27 https://github.com/pre-commit/pre-commit/pull/3617/checks
Files changed https://github.com/pre-commit/pre-commit/pull/3617/files
Please reload this pagehttps://github.com/pre-commit/pre-commit/pull/3617/files
feature: fetch tag pointing to HEAD in shallow clone https://github.com/pre-commit/pre-commit/pull/3617/files#top
Show all changes 7 commits https://github.com/pre-commit/pre-commit/pull/3617/files
c6b4874 fetch tag pointing to HEAD in shallow clone gnought Feb 6, 2026 https://github.com/pre-commit/pre-commit/pull/3617/commits/c6b4874025dad2d383a63c0f202fb51577d91172
19b60a6 Revert "fetch tag pointing to HEAD in shallow clone" gnought Feb 13, 2026 https://github.com/pre-commit/pre-commit/pull/3617/commits/19b60a6b487b0a913fd3e21895ec7167abbfef51
5c9f50b add local tag in shallow clone gnought Feb 13, 2026 https://github.com/pre-commit/pre-commit/pull/3617/commits/5c9f50b681300c71363b581d6b895565b78eab90
da18066 Revert "add local tag in shallow clone" gnought Feb 14, 2026 https://github.com/pre-commit/pre-commit/pull/3617/commits/da180668ab832432a4cf9b269a651319e818e27a
55f9ae7 best-effort fetch tag for HEAD in shallow clone gnought Feb 14, 2026 https://github.com/pre-commit/pre-commit/pull/3617/commits/55f9ae755e3851d08875072fbf0930d8c2f6b40d
8fd50fc lint fix gnought Feb 18, 2026 https://github.com/pre-commit/pre-commit/pull/3617/commits/8fd50fcc98686f0726fa23836c7049509ed23297
0287f07 lint fix gnought Feb 21, 2026 https://github.com/pre-commit/pre-commit/pull/3617/commits/0287f07421433d9da45ded22c75803ac2def46cb
Clear filters https://github.com/pre-commit/pre-commit/pull/3617/files
Please reload this pagehttps://github.com/pre-commit/pre-commit/pull/3617/files
Please reload this pagehttps://github.com/pre-commit/pre-commit/pull/3617/files
pre_commit/store.pyhttps://github.com/pre-commit/pre-commit/pull/3617/files#diff-a52ef0cf627ce783529c259e63d4ea82b77520936a2455cbf4f90ad2fb36d27d
View file https://github.com/pre-commit/pre-commit/blob/0287f07421433d9da45ded22c75803ac2def46cb/pre_commit/store.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/pre-commit/pre-commit/pull/3617/{{ revealButtonHref }}
https://github.com/pre-commit/pre-commit/pull/3617/files#diff-a52ef0cf627ce783529c259e63d4ea82b77520936a2455cbf4f90ad2fb36d27d
https://github.com/pre-commit/pre-commit/pull/3617/files#diff-a52ef0cf627ce783529c259e63d4ea82b77520936a2455cbf4f90ad2fb36d27d
https://github.com/pre-commit/pre-commit/pull/3617/files#diff-a52ef0cf627ce783529c259e63d4ea82b77520936a2455cbf4f90ad2fb36d27d
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-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.