Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed logical errors related to login

  • Loading branch information...
commit 946e5f8af43f03d32df0a087a723a11113b38834 1 parent 8029b90
Satshabad Khalsa Satshabad authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  octogit/config.py
  2. +1 −1  octogit/core.py
2  octogit/config.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):
'''
2  octogit/core.py
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)
Please sign in to comment.
Something went wrong with that request. Please try again.