Skip to content

Commit c990b25

Browse files
committed
Fix missing newline at end of VCS log files
1 parent ffad112 commit c990b25

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cylc/flow/install_plugins/log_vc_info.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,8 @@ def write_vc_info(
285285
)
286286
info_file.parent.mkdir(exist_ok=True, parents=True)
287287
with open(info_file, 'w') as f:
288-
f.write(
289-
json.dumps(info, indent=JSON_INDENT)
288+
print(
289+
json.dumps(info, indent=JSON_INDENT), file=f
290290
)
291291

292292

@@ -356,7 +356,7 @@ def write_diff(
356356
try:
357357
_run_cmd(vcs, args, repo_path, stdout=f)
358358
except VCSMissingBaseError as exc:
359-
f.write(f"# No diff - {exc}")
359+
print(f"# No diff - {exc}", file=f)
360360
return diff_file
361361

362362

0 commit comments

Comments
 (0)