Title: get_root incorrectly identifies root of workspace in git directory · Issue #1816 · pre-commit/pre-commit · GitHub
Open Graph Title: get_root incorrectly identifies root of workspace in git directory · Issue #1816 · pre-commit/pre-commit
X Title: get_root incorrectly identifies root of workspace in git directory · Issue #1816 · pre-commit/pre-commit
Description: git subrepo does work on worktrees in the .git/tmp/subrepo directory. git properly recognizes that this is a worktree; using git rev-parse --is-inside-git-dir returns false. get_root looks like it should resolve to an equivalent of git r...
Open Graph Description: git subrepo does work on worktrees in the .git/tmp/subrepo directory. git properly recognizes that this is a worktree; using git rev-parse --is-inside-git-dir returns false. get_root looks like it ...
X Description: git subrepo does work on worktrees in the .git/tmp/subrepo directory. git properly recognizes that this is a worktree; using git rev-parse --is-inside-git-dir returns false. get_root looks like it ...
Opengraph URL: https://github.com/pre-commit/pre-commit/issues/1816
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"get_root incorrectly identifies root of workspace in git directory","articleBody":"[git subrepo](https://github.com/ingydotnet/git-subrepo) does work on worktrees in the .git/tmp/subrepo directory. git properly recognizes that this is a worktree; using git rev-parse --is-inside-git-dir returns false. get_root looks like it should resolve to an equivalent of git rev-parse --show-toplevel which in this directory returns the expected path, but the workaround for strange Windows behavior is causing this to fail.\r\n\r\nI understand it is strange to have worktrees in the $GIT_DIR, but it works really well for what git subrepo does","author":{"url":"https://github.com/admorgan","@type":"Person","name":"admorgan"},"datePublished":"2021-02-25T02:20:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":13},"url":"https://github.com/1816/pre-commit/issues/1816"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7470c231-0510-2dc1-8e42-a1d0d38bcdc8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8968:2E0AEB:C6BF40:120651E:6A55FB37 |
| html-safe-nonce | 28c8ec1fe3d7c8b550d6af4748ef20dfbbf4523e297dd614757c3fe77d0dcc91 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTY4OjJFMEFFQjpDNkJGNDA6MTIwNjUxRTo2QTU1RkIzNyIsInZpc2l0b3JfaWQiOiI1MTc5MDE4MDQ3MTYwNDQ5ODQ3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 37149dfa58d53d764afab9c21076da5aeeed854be22e5c4de2da96260ec8253c |
| hovercard-subject-tag | issue:816013943 |
| github-keyboard-shortcuts | repository,issues,commits,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/issues/show/pre-commit/pre-commit/1816/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4c2630124ec9a217ad88db8db064472db3b0085f7eb3f5949b4075b5f169ab7b/pre-commit/pre-commit/issues/1816 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4c2630124ec9a217ad88db8db064472db3b0085f7eb3f5949b4075b5f169ab7b/pre-commit/pre-commit/issues/1816 |
| og:image:alt | git subrepo does work on worktrees in the .git/tmp/subrepo directory. git properly recognizes that this is a worktree; using git rev-parse --is-inside-git-dir returns false. get_root looks like it ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | admorgan |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| turbo-cache-control | no-preview |
| 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 | 3725c7f9b2a6e3a27ef57c5aed13428c0f65e045 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width