aspiers / stow

GNU Stow - mirror of savannah git repository occasionally with more bleeding-edge branches
http://www.gnu.org/s/stow/
GNU General Public License v3.0
589 stars 41 forks source link

Dotfiles doesn't work with adopt #77

Open Barabas5532 opened 3 years ago

Barabas5532 commented 3 years ago

When using --adopt and --dotfiles together, files are not adopted correctly.

Steps to reproduce:

touch .dotfiles-test
mkdir test
cd test
mkdir test
touch test/dot-dotfiles-test
stow -n --adopt --dotfiles -v test

This results in the following print:

MV: .dotfiles-test -> test/test/.dotfiles-test
LINK: .dotfiles-test => test/test/dot-dotfiles-test
WARNING: in simulation mode so not modifying filesystem.

The file is moved to .dotfiles-test and the link is to dot-dotfiles-test. These are two different files, and the result is that the original file is no longer used.