]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t7415: rename to expand scope
authorJeff King <peff@peff.net>
Sat, 1 May 2021 15:42:08 +0000 (11:42 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 May 2021 05:41:08 +0000 (14:41 +0900)
This script has already expanded beyond its original intent of ".. in
submodule names" to include other malicious submodule bits. Let's update
the name and description to reflect that, as well as the fact that we'll
soon be adding similar tests for other dotfiles (.gitattributes, etc).
We'll also renumber it to move it out of the group of submodule-specific
tests.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7450-bad-git-dotfiles.sh [moved from t/t7415-submodule-names.sh with 95% similarity]

similarity index 95%
rename from t/t7415-submodule-names.sh
rename to t/t7450-bad-git-dotfiles.sh
index 6a8cf3f47be14c01baf0297e4f93c92506994e6c..34d4dc6def04495d9c3fc8b09da47b03c17d59ce 100755 (executable)
@@ -1,9 +1,16 @@
 #!/bin/sh
 
-test_description='check handling of .. in submodule names
+test_description='check broken or malicious patterns in .git* files
 
-Exercise the name-checking function on a variety of names, and then give a
-real-world setup that confirms we catch this in practice.
+Such as:
+
+  - presence of .. in submodule names;
+    Exercise the name-checking function on a variety of names, and then give a
+    real-world setup that confirms we catch this in practice.
+
+  - nested submodule names
+
+  - symlinked .gitmodules, etc
 '
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-pack.sh