Browse Source

chore: fix missing \n at end of exported patches (#15579)

Jeremy Apthorp 6 years ago
parent
commit
2e1c50c891
1 changed files with 1 additions and 1 deletions
  1. 1 1
      script/git-export-patches

+ 1 - 1
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')