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
No related branches found
No related tags found
No related merge requests found
...@@ -119,7 +119,7 @@ class CodeRepo(object): ...@@ -119,7 +119,7 @@ class CodeRepo(object):
self.full_name = gh_repo.full_name self.full_name = gh_repo.full_name
self.ssh_url = gh_repo.ssh_url self.ssh_url = gh_repo.ssh_url
self.default_branch = gh_repo.default_branch 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) self.target_directory = os.path.join(self.config.cwd, self.name)
if self.config.mirror: if self.config.mirror:
...@@ -207,6 +207,10 @@ class WikiRepo(CodeRepo): ...@@ -207,6 +207,10 @@ class WikiRepo(CodeRepo):
self.ssh_url = self.ssh_url.rpartition('.git')[0] \ self.ssh_url = self.ssh_url.rpartition('.git')[0] \
+ '.wiki.git' + '.wiki.git'
self.default_branch = 'master' self.default_branch = 'master'
if self.description == None:
self.description = gh_repo.name
self.description += ' - Wiki' self.description += ' - Wiki'
def try_clone(self, ignore_error=True): def try_clone(self, ignore_error=True):
...@@ -226,7 +230,7 @@ class JsonRepo(object): ...@@ -226,7 +230,7 @@ class JsonRepo(object):
self.name = gh_repo.name self.name = gh_repo.name
self.full_name = gh_repo.full_name self.full_name = gh_repo.full_name
self.repo_url = gh_repo.url 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 # Sanitize the content url to strip the {/number} type markers
self.content_url = api_url.split('{')[0] 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