This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Bad patch when unstaging a symlink creation at a path that used to be a file #1762
Open
Description
To reproduce, in a git repository:
echo "something" > the-file.txt
git add the-file.txt
git commit -m "a commit"
rm the-file.txt
touch target.txt
ln -s target.txt the-file.txt
git add the-file.txt
Now open Atom in the repository, view the staged changes for the-file.txt
, and attempt to unstage just the symlink creation.
I've already written a (currently skipped) test for this situation:
github/test/integration/file-patch.test.js
Lines 556 to 580 in f9e3e77