summaryrefslogtreecommitdiffstats
path: root/t/chainlint/for-loop-abbreviated.test
diff options
context:
space:
mode:
Diffstat (limited to 't/chainlint/for-loop-abbreviated.test')
-rw-r--r--t/chainlint/for-loop-abbreviated.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/chainlint/for-loop-abbreviated.test b/t/chainlint/for-loop-abbreviated.test
new file mode 100644
index 0000000..1084ecc
--- /dev/null
+++ b/t/chainlint/for-loop-abbreviated.test
@@ -0,0 +1,6 @@
+# LINT: for-loop lacking optional "in [word...]" before "do"
+for it
+do
+ path=$(expr "$it" : '\([^:]*\)') &&
+ git update-index --add "$path" || exit
+done