Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion github_backup/github_backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2109,7 +2109,10 @@ def backup_repositories(args, output_directory, repositories):
)

if repository.get("is_gist"):
# dump gist information to a file as well
# dump gist information to a file as well; the clone may have
# been skipped (e.g. DMCA-blocked or empty gist), so make sure
# the directory exists
mkdir_p(repo_cwd)
output_file = "{0}/gist.json".format(repo_cwd)
with codecs.open(output_file, "w", encoding="utf-8") as f:
json_dump(repository, f)
Expand Down