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 | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:a5e409aa-31e7-2088-7131-2c4dfad8fa96 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8EFA:2FB483:15C27DC:1FB6FD7:6A562861 |
| html-safe-nonce | ed67ef98bd4617b0d9575c5e57802f98472bb9cde0054abf95a442a6130dfa98 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RUZBOjJGQjQ4MzoxNUMyN0RDOjFGQjZGRDc6NkE1NjI4NjEiLCJ2aXNpdG9yX2lkIjoiODEzNTA3NTk2OTUwODQxNDQxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 086ad83cbbda88f2cd3c7fdf7e178886f091c8b90ce2f8b4e0943e962c943dda |
| 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/_view_fragments/voltron/pull_requests/show/pre-commit/pre-commit/2252/pull_request_layout |
| 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 | 9d78ea552aac0685ca5f006d44f88166cbbf3bb96843f8da0c5a2c0b9908430b |
| 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 | 160a6fceec0fef718a0c3ac46f2d71ae9d5c0ff5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width