Fix regression (reported by Kasper) where trying to bridge

an empty github repos complains about there being no master branch.
Now this check is only run if the result of 'git ls-files' is not empty.