Subject: 27.0.50; vc-git: Wrong status in vc-dir after registering directory

From: Andrii Kolomoiets <[email-masked]>
Date: Sat, 14 Dec 2019 14:41:11 +0200

0. mkdir test && cd test
   git init
   touch file
   git add file
   git commit -m "initial"
   mkdir dir
   touch dir/file1
1. emacs -Q
2. C-x v d
   "dir/" is listed with "unregistered" status.
3. v
   "dir/" has "added" status.
4. g
   "dir/file1" is listed with "up-to-date" status.  Shouldn't it have
   "added" status?
5. g
   Now "dir/file1" properly has "added" status.

Also:
- After step 3 point is moved to word "dir" on second line.
- Press "n" before step 3 to move point to "dir/". After step 3 "dir/"
  status is not updated and remains "unregistered".