From 2e1c50c891e31e9a949c370683a77ee705a162f6 Mon Sep 17 00:00:00 2001 From: Jeremy Apthorp Date: Mon, 5 Nov 2018 13:50:35 -0800 Subject: [PATCH] chore: fix missing \n at end of exported patches (#15579) --- script/git-export-patches | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/git-export-patches b/script/git-export-patches index e072a832ff95..5811d688c707 100755 --- a/script/git-export-patches +++ b/script/git-export-patches @@ -123,7 +123,7 @@ def main(argv): for patch in patches: filename = get_file_name(patch) with open(os.path.join(out_dir, filename), 'w') as f: - f.write('\n'.join(remove_patch_filename(patch))) + f.write('\n'.join(remove_patch_filename(patch)).rstrip('\n') + '\n') pl.write(filename + '\n')