Re: git add -A fails in empty repository since 1.8.5

2013-12-18 Thread Duy Nguyen
On Thu, Dec 19, 2013 at 3:57 AM, Junio C Hamano wrote: > Duy Nguyen writes: > >> On Wed, Dec 18, 2013 at 3:44 PM, Antoine Pelisse wrote: >>> FWIW, git-bisect points to 84b8b5d (that is $gmane/230349). >>> >>> On Wed, Dec 18, 2013 at 9:06 AM, Thomas Ferris Nicolaisen >>> wrote: This was dis

Re: git add -A fails in empty repository since 1.8.5

2013-12-18 Thread Junio C Hamano
Duy Nguyen writes: > On Wed, Dec 18, 2013 at 3:44 PM, Antoine Pelisse wrote: >> FWIW, git-bisect points to 84b8b5d (that is $gmane/230349). >> >> On Wed, Dec 18, 2013 at 9:06 AM, Thomas Ferris Nicolaisen >> wrote: >>> This was discussed on the Git user list recently [1]. >>> >>> #in a repo with

Re: git add -A fails in empty repository since 1.8.5

2013-12-18 Thread Junio C Hamano
Matthieu Moy writes: > 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: I know. That is why I said "It _coul

Re: git add -A fails in empty repository since 1.8.5

2013-12-18 Thread Matthieu Moy
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 Initia

Re: git add -A fails in empty repository since 1.8.5

2013-12-18 Thread Junio C Hamano
Duy Nguyen writes: > On Wed, Dec 18, 2013 at 3:44 PM, Antoine Pelisse wrote: >> FWIW, git-bisect points to 84b8b5d (that is $gmane/230349). >> >> On Wed, Dec 18, 2013 at 9:06 AM, Thomas Ferris Nicolaisen >> wrote: >>> This was discussed on the Git user list recently [1]. >>> >>> #in a repo with

Re: git add -A fails in empty repository since 1.8.5

2013-12-18 Thread Duy Nguyen
On Wed, Dec 18, 2013 at 3:44 PM, Antoine Pelisse wrote: > FWIW, git-bisect points to 84b8b5d (that is $gmane/230349). > > On Wed, Dec 18, 2013 at 9:06 AM, Thomas Ferris Nicolaisen > wrote: >> This was discussed on the Git user list recently [1]. >> >> #in a repo with no files >>> git add -A >> fa

Re: git add -A fails in empty repository since 1.8.5

2013-12-18 Thread Antoine Pelisse
FWIW, git-bisect points to 84b8b5d (that is $gmane/230349). On Wed, Dec 18, 2013 at 9:06 AM, Thomas Ferris Nicolaisen wrote: > 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 a

git add -A fails in empty repository since 1.8.5

2013-12-18 Thread Thomas Ferris Nicolaisen
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:/