diff --git a/maintainer-scripts/update_web_docs_git b/maintainer-scripts/update_web_docs_git
index 0d7b6c90fe9cd3d1f6c2034c4100561bd03b662c..77210f961cf4124a6682d67af6a0704e7a164c91 100755
--- a/maintainer-scripts/update_web_docs_git
+++ b/maintainer-scripts/update_web_docs_git
@@ -138,7 +138,7 @@ rm -rf gcc/.git
 # Note that we have to preserve gcc/jit/docs since the jit docs are
 # not .texi files (Makefile, .rst and .png), and the jit docs use
 # include directives to pull in content from jit/jit-common.h and
-# jit/notes.txt, so we have to preserve those also.
+# jit/notes.txt, and from the testsuite, so we have to preserve those also.
 find gcc -type f \( -name '*.texi' \
   -o -path gcc/gcc/doc/install.texi2html \
   -o -path gcc/gcc/doc/include/texinfo.tex \
@@ -148,6 +148,7 @@ find gcc -type f \( -name '*.texi' \
   -o -path "gcc/gcc/jit/docs/*" \
   -o -path "gcc/gcc/jit/jit-common.h" \
   -o -path "gcc/gcc/jit/notes.txt" \
+  -o -path "gcc/gcc/testsuite/jit.dg/*" \
   -o -print0 \) | xargs -0 rm -f
 
 # Build a tarball of the sources.