git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [BUG?] git stash push fails on removed file pathspec
@ 2022-04-07  3:31 Alexandr Miloslavskiy
  0 siblings, 0 replies; only message in thread
From: Alexandr Miloslavskiy @ 2022-04-07  3:31 UTC (permalink / raw)
  To: git

Hi all,

Steps:

$git init TestRepo && cd TestRepo
$echo 1 >1.txt
$git add . && git commit -m 1
$git rm 1.txt
$git stash push -- 1.txt
   error: pathspec ':(,prefix:0)1.txt' did not match any file(s) known 
to git
   Did you forget to 'git add'?

At the same time, `git stash push` and `git commit -m 1 -- 1.txt` work 
as expected, stashing/committing removed file.

I tested in these versions and it happens in both:
* 2.36.0.rc0.9.g07330a41d6 (current master)
* 2.35.0

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-07  4:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-07  3:31 [BUG?] git stash push fails on removed file pathspec Alexandr Miloslavskiy

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).