From 4b459f9af80909fbefcc34b33f6bc63c41a780c4 Mon Sep 17 00:00:00 2001 From: "W. Harrison Wright" Date: Thu, 27 Dec 2018 12:58:57 -0600 Subject: [PATCH] Add org check to avoid incorrect log output --- bin/github-backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),