git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git --literal-pathspecs add -u says "fatal: pathspec ':/' did not match any files"
@ 2015-10-23 23:39 Noam Postavsky
  2015-10-24  7:13 ` Victor Leschuk
  0 siblings, 1 reply; 4+ messages in thread
From: Noam Postavsky @ 2015-10-23 23:39 UTC (permalink / raw)
  To: git

~/tmp/tmprepo$ git init
Initialized empty Git repository in /home/npostavs/tmp/tmprepo/.git/
~/tmp/tmprepo$ git --literal-pathspecs add -u
fatal: pathspec ':/' did not match any files
~/tmp/tmprepo$ git --version
git version 2.6.1

It was reported[1] that 2.0.2 and several following versions also fail
with the same error; I found that version 1.9.5 succeeds.

Adding a "." argument:

   git --literal-pathspecs add -u .

succeeds in all versions.

[1]: https://github.com/magit/magit/issues/2354#issuecomment-150665961

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-10-24 17:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-23 23:39 git --literal-pathspecs add -u says "fatal: pathspec ':/' did not match any files" Noam Postavsky
2015-10-24  7:13 ` Victor Leschuk
2015-10-24 16:55   ` Noam Postavsky
2015-10-24 17:57   ` Re* " Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).