René's URL Explorer Experiment


Title: Use the correct .git path in case of worktrees. by daschuer · Pull Request #2252 · pre-commit/pre-commit · GitHub

Open Graph Title: Use the correct .git path in case of worktrees. by daschuer · Pull Request #2252 · pre-commit/pre-commit

X Title: Use the correct .git path in case of worktrees. by daschuer · Pull Request #2252 · pre-commit/pre-commit

Description: A framework for managing and maintaining multi-language pre-commit hooks. - Use the correct .git path in case of worktrees. by daschuer · Pull Request #2252 · pre-commit/pre-commit

Open Graph Description: The issue happens because get_git_dir() returns git rev-parse --git-common-dir and not git rev-parse --git-dir as expected. This PR introduces get_git_common_dir() and uses it where the common dir ...

X Description: The issue happens because get_git_dir() returns git rev-parse --git-common-dir and not git rev-parse --git-dir as expected. This PR introduces get_git_common_dir() and uses it where the common dir ...

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

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:a5e409aa-31e7-2088-7131-2c4dfad8fa96
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8EFA:2FB483:15C27DC:1FB6FD7:6A562861
html-safe-nonceed67ef98bd4617b0d9575c5e57802f98472bb9cde0054abf95a442a6130dfa98
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RUZBOjJGQjQ4MzoxNUMyN0RDOjFGQjZGRDc6NkE1NjI4NjEiLCJ2aXNpdG9yX2lkIjoiODEzNTA3NTk2OTUwODQxNDQxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac086ad83cbbda88f2cd3c7fdf7e178886f091c8b90ce2f8b4e0943e962c943dda
hovercard-subject-tagpull_request:856047177
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/pre-commit/pre-commit/2252/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/5cf9c228b6bd16c25c49dfc36929bef34623fdef6591e67be4a9b158b0b817f0/pre-commit/pre-commit/pull/2252
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5cf9c228b6bd16c25c49dfc36929bef34623fdef6591e67be4a9b158b0b817f0/pre-commit/pre-commit/pull/2252
og:image:altThe issue happens because get_git_dir() returns git rev-parse --git-common-dir and not git rev-parse --git-dir as expected. This PR introduces get_git_common_dir() and uses it where the common dir ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedaschuer
hostnamegithub.com
expected-hostnamegithub.com
None9d78ea552aac0685ca5f006d44f88166cbbf3bb96843f8da0c5a2c0b9908430b
turbo-cache-controlno-cache
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-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release160a6fceec0fef718a0c3ac46f2d71ae9d5c0ff5
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/pre-commit/pre-commit/pull/2252#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpre-commit%2Fpre-commit%2Fpull%2F2252
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpre-commit%2Fpre-commit%2Fpull%2F2252
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=pre-commit%2Fpre-commit
Reloadhttps://github.com/pre-commit/pre-commit/pull/2252
Reloadhttps://github.com/pre-commit/pre-commit/pull/2252
Reloadhttps://github.com/pre-commit/pre-commit/pull/2252
Please reload this pagehttps://github.com/pre-commit/pre-commit/pull/2252
pre-commit https://github.com/pre-commit
pre-commithttps://github.com/pre-commit/pre-commit
Please reload this pagehttps://github.com/pre-commit/pre-commit/pull/2252
Notifications https://github.com/login?return_to=%2Fpre-commit%2Fpre-commit
Fork 985 https://github.com/login?return_to=%2Fpre-commit%2Fpre-commit
Star 15.4k https://github.com/login?return_to=%2Fpre-commit%2Fpre-commit
Code https://github.com/pre-commit/pre-commit
Issues 22 https://github.com/pre-commit/pre-commit/issues
Pull requests 13 https://github.com/pre-commit/pre-commit/pulls
Actions https://github.com/pre-commit/pre-commit/actions
Security and quality 0 https://github.com/pre-commit/pre-commit/security
Insights https://github.com/pre-commit/pre-commit/pulse
Code https://github.com/pre-commit/pre-commit
Issues https://github.com/pre-commit/pre-commit/issues
Pull requests https://github.com/pre-commit/pre-commit/pulls
Actions https://github.com/pre-commit/pre-commit/actions
Security and quality https://github.com/pre-commit/pre-commit/security
Insights https://github.com/pre-commit/pre-commit/pulse
asottilehttps://github.com/asottile
pre-commit:mainhttps://github.com/pre-commit/pre-commit/tree/main
daschuer:worktree_fixhttps://github.com/daschuer/pre-commit/tree/worktree_fix
Conversationhttps://github.com/pre-commit/pre-commit/pull/2252
Commits1 (1)https://github.com/pre-commit/pre-commit/pull/2252/commits
Checkshttps://github.com/pre-commit/pre-commit/pull/2252/checks
Files changedhttps://github.com/pre-commit/pre-commit/pull/2252/files
Use the correct .git path in case of worktrees. https://github.com/pre-commit/pre-commit/pull/2252#top
asottilehttps://github.com/asottile
pre-commit:mainhttps://github.com/pre-commit/pre-commit/tree/main
daschuer:worktree_fixhttps://github.com/daschuer/pre-commit/tree/worktree_fix
https://github.com/daschuer
daschuerhttps://github.com/daschuer
Feb 17, 2022https://github.com/pre-commit/pre-commit/pull/2252#issue-1141982807
#1972https://github.com/pre-commit/pre-commit/issues/1972
Please reload this pagehttps://github.com/pre-commit/pre-commit/pull/2252
https://github.com/daschuer
daschuerhttps://github.com/daschuer
February 17, 2022 22:25https://github.com/pre-commit/pre-commit/pull/2252#event-6093936634
https://github.com/daschuer
daschuerhttps://github.com/daschuer
February 18, 2022 09:43https://github.com/pre-commit/pre-commit/pull/2252#event-6097424700
https://github.com/daschuer
daschuerhttps://github.com/daschuer
Feb 18, 2022https://github.com/pre-commit/pre-commit/pull/2252#issuecomment-1044229414
Please reload this pagehttps://github.com/pre-commit/pre-commit/pull/2252
https://github.com/asottile
asottilehttps://github.com/asottile
Apr 2, 2022 https://github.com/pre-commit/pre-commit/pull/2252#pullrequestreview-929596616
View reviewed changes https://github.com/pre-commit/pre-commit/pull/2252/files
asottilehttps://github.com/asottile
https://github.com/pre-commit/pre-commit/pull/2252#pullrequestreview-929596616
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://camo.githubusercontent.com/2457805425ade798f10de9d48bbfe99f2d25af8088af576cde39905f1eaea2e9/68747470733a2f2f692e666c756666792e63632f584c543338703372365067427846704d6763703732436c3262764c524d726c742e676966
Please reload this pagehttps://github.com/pre-commit/pre-commit/pull/2252
https://github.com/daschuer
https://github.com/asottile
Split get_git_dir() into get_git_dir() and get_git_common_dir()https://github.com/pre-commit/pre-commit/pull/2252/commits/ba132f02007f6d185a33a80c2d537f4d29335c04
ba132f0https://github.com/pre-commit/pre-commit/pull/2252/commits/ba132f02007f6d185a33a80c2d537f4d29335c04
pre-commit#1972https://github.com/pre-commit/pre-commit/issues/1972
https://github.com/asottile
asottilehttps://github.com/asottile
force-pushedhttps://github.com/pre-commit/pre-commit/compare/60bc363837860a8e8da072943fd80e325351e4ae..ba132f02007f6d185a33a80c2d537f4d29335c04
60bc363https://github.com/pre-commit/pre-commit/commit/60bc363837860a8e8da072943fd80e325351e4ae
ba132f0https://github.com/pre-commit/pre-commit/commit/ba132f02007f6d185a33a80c2d537f4d29335c04
Compare https://github.com/pre-commit/pre-commit/compare/60bc363837860a8e8da072943fd80e325351e4ae..ba132f02007f6d185a33a80c2d537f4d29335c04
April 2, 2022 19:07https://github.com/pre-commit/pre-commit/pull/2252#event-6357300948
https://github.com/asottile
asottilehttps://github.com/asottile
d650160https://github.com/pre-commit/pre-commit/commit/d65016042b67d09139876e1903e839a168dfa7c3
Apr 2, 2022https://github.com/pre-commit/pre-commit/pull/2252#event-6357322702
https://github.co/hiddenchars
https://github.com/pre-commit/pre-commit/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpre-commit%2Fpre-commit%2Fpull%2F2252
https://github.com/asottile
asottile https://github.com/asottile
https://github.com/pre-commit/pre-commit/pull/2252/files/60bc363837860a8e8da072943fd80e325351e4ae
wrong path in case of workdirs https://github.com/pre-commit/pre-commit/issues/1972
Please reload this pagehttps://github.com/pre-commit/pre-commit/pull/2252
https://github.com/daschuer
https://github.com/asottile
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

Viewport: width=device-width


URLs of crawlers that visited me.