On failure of a pre-commit hook, run git stash pop
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
The issue reports that a failed pre-commit run leaves the stash unrestored, and the README is cited as documenting the stash step. Start by reading the README section on stashing and then reproduce with a pre-commit hook that fails, using a .overcommit.yml with a deliberately broken hook. Done means that after a failed run the stashed changes are restored, with a spec covering the failure path.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I'm getting an error in the pre-commit hook run (I don't have any pre-commit hooks, but that's another issue). When the program finishes running, files have been stashed (as is mentioned in the README) but are not restored.
kenyon@Kenyons-MacBook-Pro ~b % git status
On branch BBS-3445-b
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
modified: db/schema.rb
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: .git_hooks/post_commit/run_annotate_models.rb
modified: .overcommit.yml
kenyon@Kenyons-MacBook-Pro ~b % git commit
Unable to setup environment for pre-commit hook run:
STDOUT:
STDERR:Signature of configuration file has changed!
Run `overcommit --sign` once you've verified the configuration changes.
For more information, see https://github.com/sds/overcommit#security
kenyon@Kenyons-MacBook-Pro ~b % git status
On branch dev
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
modified: file1.txt
kenyon@Kenyons-MacBook-Pro ~b % git stash pop
On branch dev
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
modified: file1.txt
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: file2.txt
modified: file3.txt
- Ngôn ngữ chính
- Ruby
- Star
- 4k
- Fork
- 288
- Merge trung bình
- 2 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 18
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc 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 sds/overcommit
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
sds/overcommit#909 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
sds/overcommit#847 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 62/100
sds/overcommit#908 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
sds/overcommit#875 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
help wanted
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 18/100
sds/overcommit#869 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của sds/overcommit
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
seek4science/seek#2784 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Translation tutorial: snippet crashes on chunks export and misses simple { t } entriesCó thể đã có người làm @Mahdi-Hasan đã nhận hôm nay. Đang mởresource-documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
TarteelAI/quranic-universal-library#1020 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Records without the CRI logtag raise NoMethodError and are joined into the next recordCó thể đã có người làm @nazarli-shabnam đã nhận hôm nay. Đang mởbug help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
swombat/souls-house#842 ·
Maintainer thường phản hồi trong vòng 1 ngày