Clone the specified user's gists, not the authenticated user

This commit is contained in:
W. Harrison Wright
2018-09-28 21:59:50 -05:00
parent 5a8e1ac275
commit 4a4a317331

View File

@@ -538,7 +538,7 @@ def retrieve_repositories(args):
repos.extend(starred_repos) repos.extend(starred_repos)
if args.include_gists: if args.include_gists:
gists_template = 'https://{0}/gists'.format(get_github_api_host(args)) gists_template = 'https://{0}/users/{1}/gists'.format(get_github_api_host(args), args.user)
gists = retrieve_data(args, gists_template, single_request=False) gists = retrieve_data(args, gists_template, single_request=False)
# flag each repo as a gist for downstream processing # flag each repo as a gist for downstream processing
for item in gists: for item in gists: