mirror of
https://github.com/josegonzalez/python-github-backup.git
synced 2025-12-06 00:28:01 +01:00
Merge pull request #321 from jarltotland/master
fix: do not double encode auth when retrieving release assets
This commit is contained in:
@@ -1259,7 +1259,7 @@ def backup_releases(args, repo_cwd, repository, repos_template, include_assets=F
|
|||||||
download_file(
|
download_file(
|
||||||
asset["url"],
|
asset["url"],
|
||||||
os.path.join(release_assets_cwd, asset["name"]),
|
os.path.join(release_assets_cwd, asset["name"]),
|
||||||
get_auth(args),
|
get_auth(args, encode=not args.as_app),
|
||||||
as_app=args.as_app,
|
as_app=args.as_app,
|
||||||
fine=True if args.token_fine is not None else False
|
fine=True if args.token_fine is not None else False
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user