diff --git a/bin/github-backup b/bin/github-backup index 097ba1c..55b77ae 100755 --- a/bin/github-backup +++ b/bin/github-backup @@ -536,7 +536,7 @@ def retrieve_repositories(args, authenticated_user): template = 'https://{0}/user/repos'.format( get_github_api_host(args)) else: - if args.private: + if args.private and not args.organization: log_warning('Authenticated user is different from user being backed up, thus private repositories cannot be accessed') template = 'https://{0}/users/{1}/repos'.format( get_github_api_host(args),