Skip to content
  • Linus Torvalds's avatar
    Fix gitlink index entry filesystem matching · a8ee75bc
    Linus Torvalds authored
    
    
    The code to match up index entries with the filesystem was stupidly
    broken.  We shouldn't compare the filesystem stat() information with
    S_IFDIRLNK, since that's purely a git-internal value, and not what the
    filesystem uses (on the filesystem, it's just a regular directory).
    
    Also, don't bother to make the stat() time comparisons etc for DIRLNK
    entries in ce_match_stat_basic(), since we do an exact match for these
    things, and the hints in the stat data simply doesn't matter.
    
    This fixes "git status" with submodules that haven't been checked out in
    the supermodule.
    
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: default avatarJunio C Hamano <junkio@cox.net>
    a8ee75bc