Skip to content

Commit 4b459f9

Browse files
committed
Add org check to avoid incorrect log output
1 parent b70ea87 commit 4b459f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/github-backup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ def retrieve_repositories(args, authenticated_user):
536536
template = 'https://{0}/user/repos'.format(
537537
get_github_api_host(args))
538538
else:
539-
if args.private:
539+
if args.private and not args.organization:
540540
log_warning('Authenticated user is different from user being backed up, thus private repositories cannot be accessed')
541541
template = 'https://{0}/users/{1}/repos'.format(
542542
get_github_api_host(args),

0 commit comments

Comments
 (0)