René's URL Explorer Experiment


Title: Pre-commit fails for git >=2.25 if repo is on a Windows subst drive · Issue #1610 · pre-commit/pre-commit · GitHub

Open Graph Title: Pre-commit fails for git >=2.25 if repo is on a Windows subst drive · Issue #1610 · pre-commit/pre-commit

X Title: Pre-commit fails for git >=2.25 if repo is on a Windows subst drive · Issue #1610 · pre-commit/pre-commit

Description: Cross reference for another issue with same apparent root cause: microsoft/vscode#100274 (comment) Issue observed with pre-commit==2.7.1 and git 2.27. Issue resolved with downgrading git to 2.21 (I only have access to certain versions on...

Open Graph Description: Cross reference for another issue with same apparent root cause: microsoft/vscode#100274 (comment) Issue observed with pre-commit==2.7.1 and git 2.27. Issue resolved with downgrading git to 2.21 (I...

X Description: Cross reference for another issue with same apparent root cause: microsoft/vscode#100274 (comment) Issue observed with pre-commit==2.7.1 and git 2.27. Issue resolved with downgrading git to 2.21 (I...

Opengraph URL: https://github.com/pre-commit/pre-commit/issues/1610

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Pre-commit fails for git \u003e=2.25 if repo is on a Windows subst drive","articleBody":"Cross reference for another issue with same apparent root cause: https://github.com/microsoft/vscode/issues/100274#issuecomment-646499795\r\n\r\nIssue observed with pre-commit==2.7.1 and git 2.27.\r\nIssue resolved with downgrading git to 2.21 (I only have access to certain versions on my work machine).\r\n\r\nSteps to recreate for pre-commit (some taken from the above cross-reference):\r\n\r\n- Install git \u003e= 2.25 on Windows\r\n\r\n- Create a subst drive (`mkdir C:\\subst_dir \u0026\u0026 subst Z: C:\\subst_dir`)\r\n\r\n- Create a git repo in there (`mkdir Z:\\repo \u0026\u0026 cd /d Z:\\repo \u0026\u0026 git init`)\r\n\r\n- Add some python code, configure pre-commit, and run pre-commit.\r\n\r\nFailure observed: `An unexpected error has occurred: ValueError: path is on mount 'Z:', start on mount 'C:'`\r\n\r\nDiagnosis - it appears that the use of `git rev-parse --show-toplevel` in `pre_commit.main.get_root()` is suffering the same issue as seen in cross-referenced ticket; git will \"see through\" the subst command and rather than return a path on the subst-defined Z: drive, it will return the path from the C: drive. With this, after `pre_commit.main._adjust_args_and_chdir()` calls `pre_commit.main.get_root()` and does a chdir to the returned location, the following call to `os.path.relpath(args.config)` then fails with the ValueError as above, because it sees the path to the config file being on `Z:` but the current location being on `C:`.\r\n\r\nAfraid I don't have a suggested resolution but wanted to flag this up. I'm not too familiar with Windows systems and I'm a long way from Admin access on my work machine so opportunities for testing are limited; this was discovered as my scratch space for repos is a subst drive.\r\n","author":{"url":"https://github.com/jcameron73","@type":"Person","name":"jcameron73"},"datePublished":"2020-09-22T16:56:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/1610/pre-commit/issues/1610"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:26459018-dec0-8f93-7be5-dc52cb788978
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBDD4:82BB1:CC14AD:128A429:6A562911
html-safe-nonceae7d7183c7b82f116346ba1f1f28428c4040c8378cc4e1745b087b784665ce23
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCREQ0OjgyQkIxOkNDMTRBRDoxMjhBNDI5OjZBNTYyOTExIiwidmlzaXRvcl9pZCI6IjgyMDM1MzE0MjI4NDM0MTQ4MDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacc55e32f4adb493513bd6b771f1af5920b3f48b0fed8f0f258e47f9ef794360ec
hovercard-subject-tagissue:706545694
github-keyboard-shortcutsrepository,issues,commits,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/pre-commit/pre-commit/1610/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e51907a5f6f401b27998196b0d61eb9a09fd4cb26d737ce3a1484d9493040a92/pre-commit/pre-commit/issues/1610
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e51907a5f6f401b27998196b0d61eb9a09fd4cb26d737ce3a1484d9493040a92/pre-commit/pre-commit/issues/1610
og:image:altCross reference for another issue with same apparent root cause: microsoft/vscode#100274 (comment) Issue observed with pre-commit==2.7.1 and git 2.27. Issue resolved with downgrading git to 2.21 (I...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejcameron73
hostnamegithub.com
expected-hostnamegithub.com
None9d78ea552aac0685ca5f006d44f88166cbbf3bb96843f8da0c5a2c0b9908430b
turbo-cache-controlno-preview
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/issues/1610#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpre-commit%2Fpre-commit%2Fissues%2F1610
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%2Fissues%2F1610
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=pre-commit%2Fpre-commit
Reloadhttps://github.com/pre-commit/pre-commit/issues/1610
Reloadhttps://github.com/pre-commit/pre-commit/issues/1610
Reloadhttps://github.com/pre-commit/pre-commit/issues/1610
Please reload this pagehttps://github.com/pre-commit/pre-commit/issues/1610
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/issues/1610
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
#1727https://github.com/pre-commit/pre-commit/pull/1727
Pre-commit fails for git >=2.25 if repo is on a Windows subst drivehttps://github.com/pre-commit/pre-commit/issues/1610#top
#1727https://github.com/pre-commit/pre-commit/pull/1727
bughttps://github.com/pre-commit/pre-commit/issues?q=state%3Aopen%20label%3A%22bug%22
windowshttps://github.com/pre-commit/pre-commit/issues?q=state%3Aopen%20label%3A%22windows%22
https://github.com/jcameron73
jcameron73https://github.com/jcameron73
on Sep 22, 2020https://github.com/pre-commit/pre-commit/issues/1610#issue-706545694
microsoft/vscode#100274 (comment)https://github.com/microsoft/vscode/issues/100274#issuecomment-646499795
bughttps://github.com/pre-commit/pre-commit/issues?q=state%3Aopen%20label%3A%22bug%22
windowshttps://github.com/pre-commit/pre-commit/issues?q=state%3Aopen%20label%3A%22windows%22
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.