diff --git a/pagure/lib/git.py b/pagure/lib/git.py index ab08826..90aa12d 100644 --- a/pagure/lib/git.py +++ b/pagure/lib/git.py @@ -152,7 +152,7 @@ def update_git(obj, repo, repofolder, objtype='ticket'): # Write down what changed with open(file_path, 'w') as stream: - stream.write(obj.to_json()) + stream.write(json.dumps(obj.to_json())) # Retrieve the list of files that changed diff = new_repo.diff()