git add -A fails in empty repository since 1.8.5
- From
Thomas Ferris Nicolaisen <tfnico@gmail.com>
- Date
- Dec 18, 2013, 08:06 UTC
- Message-ID
- <CAEcj5uWHpem+5os+3Mc_a42pk6f30i4UiV=LRPdXkoqiy1jQ_w@mail.gmail.com>
This was discussed on the Git user list recently [1].
#in a repo with no files
> git add -A
fatal: pathspec '.' did not match any files
The same goes for git add . (and -u).
Whereas I think some warning feedback is useful, we are curious whether this is an intentional change or not.
[1] https://groups.google.com/d/topic/git-users/Qs4YSPhTsqE/discussion