Title: Fresh install ends with "fatal: unable to read" · Issue #1379 · pre-commit/pre-commit · GitHub
Open Graph Title: Fresh install ends with "fatal: unable to read" · Issue #1379 · pre-commit/pre-commit
X Title: Fresh install ends with "fatal: unable to read" · Issue #1379 · pre-commit/pre-commit
Description: During bumping version of mypy hook from v0.740 to v0.770 I spot these error [INFO] This may take a few minutes... An unexpected error has occurred: CalledProcessError: command: ('/Library/Developer/CommandLineTools/usr/libexec/git-core/...
Open Graph Description: During bumping version of mypy hook from v0.740 to v0.770 I spot these error [INFO] This may take a few minutes... An unexpected error has occurred: CalledProcessError: command: ('/Library/Develope...
X Description: During bumping version of mypy hook from v0.740 to v0.770 I spot these error [INFO] This may take a few minutes... An unexpected error has occurred: CalledProcessError: command: ('/Library/Deve...
Opengraph URL: https://github.com/pre-commit/pre-commit/issues/1379
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fresh install ends with \"fatal: unable to read\"","articleBody":"During bumping version of mypy hook from v0.740 to v0.770 I spot these error\r\n```\r\n[INFO] This may take a few minutes...\r\nAn unexpected error has occurred: CalledProcessError: command: ('/Library/Developer/CommandLineTools/usr/libexec/git-core/git', 'diff', '--staged', '--name-only', '--no-ext-diff', '-z', '--diff-filter=ACMRTUXB')\r\nreturn code: 128\r\nexpected return code: 0\r\nstdout: (none)\r\nstderr:\r\n fatal: unable to read 0aadd30bdf64ada67f76ff3b00dcf77c811563ef\r\n```\r\nIt occures only on fresh pre-commit (after `pre-commit clean`) once and then it works normally.\r\n\r\nMy configuration:\r\n```\r\n# See https://pre-commit.com for more information\r\n# See https://pre-commit.com/hooks.html for more hooks\r\nrepos:\r\n - repo: https://github.com/pre-commit/pre-commit-hooks\r\n rev: v2.4.0\r\n hooks:\r\n - id: trailing-whitespace\r\n - id: end-of-file-fixer\r\n - id: check-yaml\r\n - id: check-added-large-files\r\n - id: debug-statements\r\n\r\n - repo: https://github.com/psf/black\r\n rev: stable\r\n hooks:\r\n - id: black\r\n\r\n - repo: https://gitlab.com/pycqa/flake8\r\n rev: 3.7.9\r\n hooks:\r\n - id: flake8\r\n additional_dependencies: [\r\n flake8-bugbear,\r\n # Handle assigment expression https://www.python.org/dev/peps/pep-0572/\r\n \"-e\",\r\n \"git+https://github.com/pycqa/pyflakes@1911c20#egg=pyflakes\",\r\n \"-e\",\r\n \"git+https://github.com/pycqa/pycodestyle@d219c68#egg=pycodestyle\",\r\n ]\r\n\r\n - repo: https://github.com/pre-commit/mirrors-mypy\r\n rev: v0.770\r\n hooks:\r\n - id: mypy\r\n\r\n - repo: https://github.com/prettier/prettier\r\n rev: 1.19.1\r\n hooks:\r\n - id: prettier\r\n args: [--prose-wrap=always, --print-width=88]\r\n\r\n - repo: local\r\n hooks:\r\n - id: tests\r\n name: run tests\r\n entry: poetry run pytest -v\r\n files: \"test_*\"\r\n verbose: true\r\n language: system\r\n types: [python]\r\n stages: [push, manual]\r\n\r\n```","author":{"url":"https://github.com/B3QL","@type":"Person","name":"B3QL"},"datePublished":"2020-03-27T18:04:08Z","url":"https://github.com/pre-commit/pre-commit/issues/1379"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:94c96c0c-8fb2-54f8-d0e1-37fc7be59030 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8598:27E5CD:39B32D7:49C7BD4:6B01F255 |
| html-safe-nonce | 1e3acd8b1b9586b29464edfa4fe870c322bf94728f192933698e1e15361b2870 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTk4OjI3RTVDRDozOUIzMkQ3OjQ5QzdCRDQ6NkIwMUYyNTUiLCJ2aXNpdG9yX2lkIjoiNzUwMjEzNzI1NzM5MDg5NTcwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6a2b806f9043aa95c08bfa440b6401248a7a435c223592fa01bb26c61ceed050 |
| hovercard-subject-tag | issue:589311204 |
| 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/1379/issue_layout |
| twitter:image | https://opengraph.githubassets.com/58d69773dcf2d7912aebd6eb988216537f4ae28f154ddcb6adc66c1a6d309e11/pre-commit/pre-commit/issues/1379 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/58d69773dcf2d7912aebd6eb988216537f4ae28f154ddcb6adc66c1a6d309e11/pre-commit/pre-commit/issues/1379 |
| og:image:alt | During bumping version of mypy hook from v0.740 to v0.770 I spot these error [INFO] This may take a few minutes... An unexpected error has occurred: CalledProcessError: command: ('/Library/Develope... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | B3QL |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width