Skip to content
This repository was archived by the owner on Aug 25, 2020. It is now read-only.
This repository was archived by the owner on Aug 25, 2020. It is now read-only.

Surch fails on empty repos #24

@Havivw

Description

@Havivw

2016-06-21 11:48:04,425 - surch - INFO - Scanning repo cloudhealth-client for 27 string(s)...
2016-06-21 11:48:04,466 - surch - INFO - Writing results to: /home/haviv/.surch/results/cloudify-cosmo/results.json...
Traceback (most recent call last):
File "/home/haviv/.virtualenvs/surch/bin/surch", line 9, in
load_entry_point('surch', 'console_scripts', 'surch')()
File "/home/haviv/.virtualenvs/surch/lib/python2.7/site-packages/click/core.py", line 716, in call
return self.main(_args, *_kwargs)
File "/home/haviv/.virtualenvs/surch/lib/python2.7/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/home/haviv/.virtualenvs/surch/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/haviv/.virtualenvs/surch/lib/python2.7/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, *_ctx.params)
File "/home/haviv/.virtualenvs/surch/lib/python2.7/site-packages/click/core.py", line 534, in invoke
return callback(_args, **kwargs)
File "/home/haviv/ops/surch/surch/surch.py", line 107, in surch_org
cloned_repos_dir=cloned_repos_path)
File "/home/haviv/ops/surch/surch/organization.py", line 236, in search
org.search(search_list=search_list)
File "/home/haviv/ops/surch/surch/organization.py", line 184, in search
cloned_repo_dir=self.cloned_repos_dir)
File "/home/haviv/ops/surch/surch/repo.py", line 251, in search
repo.search(search_list=search_list)
File "/home/haviv/ops/surch/surch/repo.py", line 218, in search
self.result_count, self.commits))
AttributeError: 'Repo' object has no attribute 'commits'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions