fork-dev / TrackerWin

Bug and issue tracker for Fork for Windows
459 stars 10 forks source link

Staging a lot of files causes pathspec warning #2079

Open Xorboo opened 9 months ago

Xorboo commented 9 months ago

Version: 1.90.1 (fork git instance 2.42.0), but this has been happening for quite a long time. Severity: minor

This bug causes a following error window to appear when staging a lot of files (with specifics, see below): fatal: pathspec '<path_to_first_deleted_file_in_list>' did not match any files. All files end up being properly staged, so this is just a minor annoyance.

Specifics:

This only happens if I select files by Ctrl+A, or if I select a number of nested directories (at least 6 in my case). If I only select the files (not folders), or if I select < 5 folders (any of the nested ones) - everything is staged without an error. I have no ideas, perhaps something to do with how the file list is formed before passing it to git command? I think number of changed files and directories are related (the more files you have - the fewer nested directories you have to select). Using git add -A does not cause this error. Also, ~half of the files are tracked into LFS

image image

Kzi1 commented 7 months ago

I frequently experience the similar behavior with large (in both file count and file size) changelists. it eventually works after a few tries, and/or by staging by chunks instead of all at once. it's a bit annoying indeed