Răsfoiți Sursa

Prevent travis logs from spamming on files in commit history (#4227)

* Fix rack gem reported vuln

* Prevent travis logs from spamming on files in commit history
Nate 6 ani în urmă
părinte
comite
c4372c0820
1 a modificat fișierele cu 4 adăugiri și 1 ștergeri
  1. 4 1
      toolset/travis/travis_diff.py

+ 4 - 1
toolset/travis/travis_diff.py

@@ -98,7 +98,10 @@ changes = clean_output(
         'git log --name-only --pretty="format:" {!s}'.format(commit_range)
     ]))
 print("Determining what to run based on the following file changes: \n{!s}"
-    .format(changes))
+    .format('\n'.join(changes.split('\n')[0:10])))
+if len(changes.split('\n')) > 10:
+    print("Too many files to show.")
+
 
 # COMMIT MESSAGES:
 # Before any complicated diffing, check for forced runs from the commit message