[BUG?] git stash push fails on removed file pathspec

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux