[git] do not try to query commit signatures for non-git roots