git apply error when using git-crypt
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 38/100
Hướng nghiên cứu
Reproduce the failure with the shown .pre-commit-config.yaml, .gitattributes entry, Git 2.18.0, and pre-commit 1.10.2, starting from the reported git apply invocation during conflicted stash restoration. Done means the commit and hook auto-fix workflow no longer ends with the reported unrecognized-input error.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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 detected.
[INFO] Stashing unstaged files to /Users/bob/.cache/pre-commit/patch1530518673.
Trim Trailing Whitespace.................................................Passed
Check Yaml...............................................................Passed
Fix End of Files.........................................................Passed
Ansible-lint.............................................................Passed
[WARNING] Stashed changes conflicted with hook auto-fixes... Rolling back fixes...
An 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')
Return code: 128
Expected return code: 0
Output: (none)
Errors:
error: unrecognized input
git version: 2.18.0
pre-commit version: 1.10.2
.pre-commit-config.yaml
repos:
- repo: git://github.com/pre-commit/pre-commit-hooks
rev: v1.3.0
hooks:
- id: trailing-whitespace
- id: check-yaml
- id: end-of-file-fixer
- repo: https://github.com/willthames/ansible-lint.git
rev: v3.4.23
hooks:
- id: ansible-lint
entry: ansible-lint bootstrap.yml
.gitattributes:
hosts/testing/secret-vars.yml filter=git-crypt diff=git-crypt
- Ngôn ngữ chính
- Python
- Star
- 15.6k
- Fork
- 1k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của pre-commit/pre-commit
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
pre-commit/pre-commit#3664 · 3 bình luận ·
-
bug windows
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
pre-commit/pre-commit#2530 · 6 bình luận ·
-
Use --store-dir for haskell Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
pre-commit/pre-commit#3501 · 1 bình luận ·
-
Add deno to supported languages Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
pre-commit/pre-commit#3410 · 4 bình luận · 3 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
pre-commit/pre-commit#3278 · 6 bình luận ·
Tất cả issue của pre-commit/pre-commit
Issue tương tự
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
canonical/paas-charm#368 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
tech debt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
addition to tracking list Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
StevenBlack/hosts#3256 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
qualcomm/qai-appbuilder#275 ·