Improved handling for outside git repos.