When passing --color to `ls` and the entry were colored, git would not return a commit due to the escape sequences.
$+commands[]
command -v
commit-last-msg
git-make-fork