Skip to content
Snippets Groups Projects
Commit 46f1dcfc authored by Dan Nicholson's avatar Dan Nicholson Committed by GitHub
Browse files

Merge pull request #2 from sgnn7/master

Fixed issues with null descriptions
parents 63b373a7 51f20050
Branches
No related tags found
No related merge requests found
......@@ -119,7 +119,7 @@ class CodeRepo(object):
self.full_name = gh_repo.full_name
self.ssh_url = gh_repo.ssh_url
self.default_branch = gh_repo.default_branch
self.description = gh_repo.description
self.description = gh_repo.description or ""
self.target_directory = os.path.join(self.config.cwd, self.name)
if self.config.mirror:
......@@ -207,6 +207,10 @@ class WikiRepo(CodeRepo):
self.ssh_url = self.ssh_url.rpartition('.git')[0] \
+ '.wiki.git'
self.default_branch = 'master'
if self.description == None:
self.description = gh_repo.name
self.description += ' - Wiki'
def try_clone(self, ignore_error=True):
......@@ -226,7 +230,7 @@ class JsonRepo(object):
self.name = gh_repo.name
self.full_name = gh_repo.full_name
self.repo_url = gh_repo.url
self.description = gh_repo.description
self.description = gh_repo.description or ""
# Sanitize the content url to strip the {/number} type markers
self.content_url = api_url.split('{')[0]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment