Title: git apply error when using git-crypt · Issue #776 · pre-commit/pre-commit · GitHub
Open Graph Title: git apply error when using git-crypt · Issue #776 · pre-commit/pre-commit
X Title: git apply error when using git-crypt · Issue #776 · pre-commit/pre-commit
Description: Hi. I am currently using git-crypt in tandem with some pre-commit hooks Upon adding a new file for encryption --> a corresponding .gitattributes entry --> git commit -m "blah" I encounter the following error: [WARNING] Unstaged files det...
Open Graph Description: Hi. I am currently using git-crypt in tandem with some pre-commit hooks Upon adding a new file for encryption --> a corresponding .gitattributes entry --> git commit -m "blah" I encounter the follo...
X Description: Hi. I am currently using git-crypt in tandem with some pre-commit hooks Upon adding a new file for encryption --> a corresponding .gitattributes entry --> git commit -m "blah" I enc...
Opengraph URL: https://github.com/pre-commit/pre-commit/issues/776
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"git apply error when using git-crypt","articleBody":"Hi. I am currently using `git-crypt` in tandem with some `pre-commit` hooks\r\n\r\nUpon adding a new file for encryption --> a corresponding `.gitattributes` entry --> `git commit -m \"blah\"` I encounter the following error:\r\n```\r\n[WARNING] Unstaged files detected.\r\n[INFO] Stashing unstaged files to /Users/bob/.cache/pre-commit/patch1530518673.\r\nTrim Trailing Whitespace.................................................Passed\r\nCheck Yaml...............................................................Passed\r\nFix End of Files.........................................................Passed\r\nAnsible-lint.............................................................Passed\r\n[WARNING] Stashed changes conflicted with hook auto-fixes... Rolling back fixes...\r\nAn unexpected error has occurred: CalledProcessError: Command: ('/usr/local/Cellar/git/2.18.0/libexec/git-core/git', '-c', 'core.autocrlf=false', 'apply', '--whitespace=nowarn', '/Users/bob/.cache/pre-commit/patch1530518673')\r\nReturn code: 128\r\nExpected return code: 0\r\nOutput: (none)\r\nErrors:\r\n error: unrecognized input\r\n```\r\n\r\n**git version:** `2.18.0`\r\n**pre-commit version:** `1.10.2`\r\n**.pre-commit-config.yaml**\r\n```\r\nrepos:\r\n- repo: git://github.com/pre-commit/pre-commit-hooks\r\n rev: v1.3.0\r\n hooks:\r\n - id: trailing-whitespace\r\n - id: check-yaml\r\n - id: end-of-file-fixer\r\n- repo: https://github.com/willthames/ansible-lint.git\r\n rev: v3.4.23\r\n hooks:\r\n - id: ansible-lint\r\n entry: ansible-lint bootstrap.yml\r\n```\r\n\r\n**.gitattributes:**\r\n```\r\nhosts/testing/secret-vars.yml filter=git-crypt diff=git-crypt\r\n```","author":{"url":"https://github.com/ranimufid","@type":"Person","name":"ranimufid"},"datePublished":"2018-07-02T08:12:37Z","url":"https://github.com/pre-commit/pre-commit/issues/776"}
| 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:e9e4ac5c-6185-4964-88ec-0566804ea271 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 943A:DAF5F:14BBCA0:1B4A6A2:6B0660E4 |
| html-safe-nonce | d8c166105289f935dabee2e03253fedb18485ebf23b662b9ee334786b7c0e4bf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDNBOkRBRjVGOjE0QkJDQTA6MUI0QTZBMjo2QjA2NjBFNCIsInZpc2l0b3JfaWQiOiIxOTcyNDI1MDEzMzUzNDA2NjkyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7b63d526e8a9a90de49f9ef86f384311bd32439f3dad7aee54ae7dd1c407688d |
| hovercard-subject-tag | issue:337411977 |
| 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/776/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3370338ac6be743fdb14c7bfb4548b94bc42ec9767bfbe3f2863db7fd37a2647/pre-commit/pre-commit/issues/776 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3370338ac6be743fdb14c7bfb4548b94bc42ec9767bfbe3f2863db7fd37a2647/pre-commit/pre-commit/issues/776 |
| og:image:alt | Hi. I am currently using git-crypt in tandem with some pre-commit hooks Upon adding a new file for encryption --> a corresponding .gitattributes entry --> git commit -m "blah" I encounter the follo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ranimufid |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6324e6ac990fb6befbec840cc0e102a1071c339bfe8f9826bb12de2e3ba1d297 |
| 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 | 7f0aa75f4141d440c6110dc31af7ea7797abb6c4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width