commit 5d6fee7370df74c4ac3200261b2bf821c5b52f9c from: Stefan Sperling via: Thomas Adam date: Mon Feb 20 16:18:17 2023 UTC extend test_import_ignores test coverage Cover the case where a regular file would match if the ignore pattern did not have a trailing slash. commit - 35cdfa2c870e6a3e81defeece73b69570753a845 commit + 5d6fee7370df74c4ac3200261b2bf821c5b52f9c blob - 28fd8607f9a6b87c382e3669204da90a4ec3c6ac blob + c2f3ee46fef581bf98a2713c1d619163cb51f339 --- regress/cmdline/import.sh +++ regress/cmdline/import.sh @@ -374,6 +374,8 @@ test_import_ignores() { mkdir $testroot/tree make_test_tree $testroot/tree + touch $testroot/tree/upsilon + mkdir $testroot/tree/ysilon got import -I alpha -I 'beta/' -I '*lta*' -I '*silon/' \ -m 'init' -r $testroot/repo $testroot/tree > $testroot/stdout ret=$? @@ -384,6 +386,7 @@ test_import_ignores() { local head_commit=`git_show_head $testroot/repo` echo "A $testroot/tree/beta" >> $testroot/stdout.expected + echo "A $testroot/tree/upsilon" >> $testroot/stdout.expected echo "Created branch refs/heads/main with commit $head_commit" \ >> $testroot/stdout.expected