Use correct ref when finding directories in repos
Created by: mrnugget
@eseliger found this potential bug. It's extracted from the other PR with the tests fixed.
Created by: mrnugget
@eseliger found this potential bug. It's extracted from the other PR with the tests fixed.