From 77d976cd65fdffdf405f62c0d0f6ce5833be7b5c Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Mon, 19 Apr 2021 14:05:59 -0700 Subject: [PATCH] Ignore backup files left by emacs. Test: Added a file like this locally and the upload hook didn't care Bug: None Change-Id: I4c33f2517a9a83c7797d3ea9074fffeedf85dcaa --- libc/tools/generate_notice.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libc/tools/generate_notice.py b/libc/tools/generate_notice.py index e0e6b3215..9b53f9f60 100755 --- a/libc/tools/generate_notice.py +++ b/libc/tools/generate_notice.py @@ -38,6 +38,9 @@ def is_interesting(path_str: str) -> bool: return False if path.name in {"notice", "readme", "pylintrc"}: return False + # Backup files for some editors. + if path.match("*~"): + return False return True