Permalink
Browse files

fixed logical errors related to login

  • Loading branch information...
1 parent 8029b90 commit 946e5f8af43f03d32df0a087a723a11113b38834 @Satshabad Satshabad committed Feb 9, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 octogit/config.py
  2. +1 −1 octogit/core.py
View
@@ -59,7 +59,7 @@ def get_headers(headers=()):
return defaults
def have_credentials():
- get_username() != '' and get_token() != ''
+ return get_username() != '' and get_token() != ''
def set_token(token):
'''
View
@@ -164,7 +164,7 @@ def create_repository(project_name, description, organization=None):
if organization:
create_local_repo(organization, project_name)
else:
- create_local_repo(username, project_name)
+ create_local_repo(get_username(), project_name)
else:
# Something went wrong
post_response = json.loads(r.content)

0 comments on commit 946e5f8

Please sign in to comment.