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
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/commits(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:2a8d14eb-b832-fd66-f3b3-7eb3ae1b8c7b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 981A:30DD43:2BE33C7:3F069A7:6A5677A8 |
| html-safe-nonce | 16822e2150f4eaed5953b8b17535136ee8732c1a16f17b5dadb2b394ab43d701 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODFBOjMwREQ0MzoyQkUzM0M3OjNGMDY5QTc6NkE1Njc3QTgiLCJ2aXNpdG9yX2lkIjoiNzcxOTAyNjEzODI2NzI5ODk2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3750b40219cb4952472d804683043375b3c93ee97970fc4dcf5138f37d6eac29 |
| hovercard-subject-tag | pull_request:856047177 |
| github-keyboard-shortcuts | repository,commits,pull-request-list,pull-request-conversation,pull-request-files-changed,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/pre-commit/pre-commit/pull/2252/commits |
| twitter:image | https://opengraph.githubassets.com/5cf9c228b6bd16c25c49dfc36929bef34623fdef6591e67be4a9b158b0b817f0/pre-commit/pre-commit/pull/2252 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5cf9c228b6bd16c25c49dfc36929bef34623fdef6591e67be4a9b158b0b817f0/pre-commit/pre-commit/pull/2252 |
| og:image:alt | 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 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | daschuer |
| hostname | github.com |
| expected-hostname | github.com |
| None | 19b5ee9431dcfce15ab4b001d626e4e3a6ba1acb7be814813a52bbebd9a86ef5 |
| turbo-cache-control | no-cache |
| go-import | github.com/pre-commit/pre-commit git https://github.com/pre-commit/pre-commit.git |
| octolytics-dimension-user_id | 6943086 |
| octolytics-dimension-user_login | pre-commit |
| octolytics-dimension-repository_id | 17689377 |
| octolytics-dimension-repository_nwo | pre-commit/pre-commit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 17689377 |
| octolytics-dimension-repository_network_root_nwo | pre-commit/pre-commit |
| 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 | afc01ffdb045f4ff81c6122091366ade7b6166b7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width