diff --git a/ghsync/core.py b/ghsync/core.py index 268b916..5d74e0d 100644 --- a/ghsync/core.py +++ b/ghsync/core.py @@ -35,7 +35,7 @@ from github2.client import Github __author__ = 'Kenneth Reitz' __license__ = 'ISC' __copyright__ = '2011 Kenneth REitz' -__version__ = '0.3.0' +__version__ = '0.3.1' # GitHub configurations GITHUB_USER = cmd('git config github.user') @@ -101,7 +101,7 @@ def run(): repo.parent = json.loads(requests.get(_url, ).content)['repository'].get('parent') - if (org in only_type) or not only_type: + if not only_type or (org in only_type): # just `git pull` if it's already there if os.path.exists(repo.name): diff --git a/setup.py b/setup.py index feb3953..d996bac 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ required = ['github2', 'clint', 'requests'] setup( name='ghsync', - version='0.3.0', + version='0.3.1', description='GitHub Syncer. Clones or Pulls all GitHub repos.', long_description=open('README.rst').read(), author='Kenneth Reitz',