From: Matthieu Moy Date: Wed, 18 Dec 2013 19:24:35 GMT Subject: Re: git add -A fails in empty repository since 1.8.5 Message-ID: In-Reply-To: Junio C Hamano writes: > It could be argued that a "git add [] .", with an > explicit "." given by the end-user, that is run in an empty > directory may be an error worth reporting. But what we have right now is really weird: # setup repo with one empty dir: $ rm -fr test $ git init test Initialized empty Git repository in /tmp/test/.git/ $ cd test $ mkdir foo $ git add . fatal: pathspec '.' did not match any files => The one we're discussing. $ git add foo => No error when an empty directory other than . is given. $ cd foo $ git add . => No error either for "git add ." when not at the root of the repo. -- Matthieu Moy http://www-verimag.imag.fr/~moy/