You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
When rapidly staging or unstaging files one line at a time, a "patch does not apply" error appears in the dev console.
Steps to Reproduce
Create an untracked file with many lines.
Click on the file in the unstaged changes list to open it in a ChangedFileItem.
Select the first row.
Use the keyboard shortcut (cmd-enter) to rapidly stage many lines at once.
Expected behavior:
Rapid stage (or unstage) operations should be throttled into a synchronous sequence that applies cleanly.
Actual behavior:
The following stacktrace appears in the dev console:
Uncaught (in promise) GitError: git apply --cached - in /Users/smashwilson/fixtures/patches exited with code 1
stdout:
stderr: error: patch failed: few-patches.after.txt:1
error: few-patches.after.txt: patch does not apply
at new GitError (/Users/smashwilson/.atom/packages/github/lib/git-shell-out-strategy.js:34:18)
at Promise (/Users/smashwilson/.atom/packages/github/lib/git-shell-out-strategy.js:328:23)
at <anonymous>
Reproduces how often:
Reproduces consistently with files containing ~100 different lines.