adopting dot-files does not work as expected
Karl Herbig <[email protected]> Wed, 7 Aug 2024 21:02:04 +0200
| Newsgroups | gmane.comp.gnu.stow.bugs |
|---|---|
| Message-ID | <[email protected]> |
Hello dear stow developers/community, In my example I prepared a git repo at `~/projects/dotfiles`. There I `touch`ed `~/projects/dotfiles/git/dot-gitconfig`. My assumption was, that I could now use `--adopt` to transfer the content of the `~/.gitconfig` file into `~/projects/dotfiles/git/dot-gitconfig`. Unfortunately, `--adopt` does not respect the `--dotfiles` argument, moving the `.gitconfig` right beside `dot-gitconfig` but creating a link that leads to the still empty `dot-gitconig`. Here is a little out put for more context: ``` $ pwd ~/projects/dotfiles $ tree -a git git └── dot-gitconfig $ stow --adopt --dotfiles -v -n -t ~ git MV: .gitconfig -> projects/dotfiles/git/.gitconfig LINK: .gitconfig => projects/dotfiles/git/dot-gitconfig WARNING: in simulation mode so not modifying filesystem. $ tree -a git git ├── dot-gitconfig └── .gitconfig $ ls -la ~/.gitconfig lrwxrwxrwx 1 muro muro 35 Aug 7 20:57 ~/.gitconfig -> projects/dotfiles/git/dot-gitconfig ``` Best Regards Karl