Przeglądaj źródła

Skipping any symlinks for the yaml validation check

Kenny Woodson 9 lat temu
rodzic
commit
964178acf7
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      git/yaml_validation.py

+ 1 - 1
git/yaml_validation.py

@@ -47,7 +47,7 @@ def main():
 
             print "+++++++ Received: %s" % file_mod
 
-            if not file_mod.endswith('.yml') and not file_mod.endswith('.yaml'):
+            if not file_mod.endswith('.yml') and not file_mod.endswith('.yaml') and not os.path.islink(file_mod):
                 continue
 
             try: