fixes #8438 - using correct environments for repository lookup
Merge pull request #4821 from jlsherrill/8438

fixes #8438 - using correct environments for repository lookup