git rm --pathspec-from-file does not work in subdirectories
- From
- Dietrich Epp <depp@moria.us>
- Date
- May 28, 2021, 04:20 UTC
- Message-ID
- <CAKGua8U25GF=mC+vRARRY99ZgaHoUOA7vppmOUdWoeB=bf3NAA@mail.gmail.com>
How to reproduce: cd into a subdirectory and use git rm --pathspec-from-file. For example, in Git's repo, at the top level:
$ git rm --pathspec-from-file=/dev/null fatal: No pathspec was given. Which files should I remove? $ cd compat $ git rm --pathspec-from-file=/dev/null fatal: --pathspec-from-file is incompatible with pathspec arguments
However, git add works as expected.
Tested on commit 5afd72a96f0a3f65a832fd1448d9de1c534aaa69 (master)