From 5a8e1ac2754db27c4a12bc920739c90210776208 Mon Sep 17 00:00:00 2001 From: "W. Harrison Wright" Date: Fri, 28 Sep 2018 21:46:28 -0500 Subject: [PATCH 1/2] Clone the specified user's starred repos, not the authenticated user --- bin/github-backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/github-backup b/bin/github-backup index 2603ad1..7d9e333 100755 --- a/bin/github-backup +++ b/bin/github-backup @@ -530,7 +530,7 @@ def retrieve_repositories(args): repos = retrieve_data(args, template, single_request=single_request) if args.all_starred: - starred_template = 'https://{0}/user/starred'.format(get_github_api_host(args)) + starred_template = 'https://{0}/users/{1}/starred'.format(get_github_api_host(args), args.user) starred_repos = retrieve_data(args, starred_template, single_request=False) # flag each repo as starred for downstream processing for item in starred_repos: From 4a4a3173313c2b718ca0af950fd3863153b507da Mon Sep 17 00:00:00 2001 From: "W. Harrison Wright" Date: Fri, 28 Sep 2018 21:59:50 -0500 Subject: [PATCH 2/2] Clone the specified user's gists, not the authenticated user --- bin/github-backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/github-backup b/bin/github-backup index 7d9e333..973456e 100755 --- a/bin/github-backup +++ b/bin/github-backup @@ -538,7 +538,7 @@ def retrieve_repositories(args): repos.extend(starred_repos) 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) # flag each repo as a gist for downstream processing for item in gists: