From c166876970f7fe821ae32d29929fd8c699e2c61e Mon Sep 17 00:00:00 2001 From: Drew Short Date: Thu, 18 Jan 2018 17:21:07 -0600 Subject: [PATCH] Hedging against repositories without src or repo --- src/spm/spm.moon | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/spm/spm.moon b/src/spm/spm.moon index 6fe0bd9..6b7fe0e 100644 --- a/src/spm/spm.moon +++ b/src/spm/spm.moon @@ -76,7 +76,12 @@ getRepositories = (repoLocation) -> repositories[linkedRepositoryName] = linkedRepository continue - src = repository.src or nil + if repository.src == nil and repository.repo == nil + print("Repository malformed/unsupported:" .. repositoryName) + continue + + src = repository.src + if src == nil src = githubContentRoot .. repository.repo .."/master" repositories[repositoryName] = Repository(repositoryName, src)