Merge pull request #716 from dylan171/master

Fix regression: build will fail if empty repository is added.