completion tests: don't add test cruft to the test repository
While preparing commits, three tests added newly created files to the index using 'git add .', which added not only the files in question but leftover test cruft from previous tests like the files 'expected' and 'actual' as well. Luckily, this had no effect on the tests' correctness. Add only the files we are actually interested in. Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
SZEDER Gábor committed
Feb 3, 2017 at 03:48 UTC
e5edbef48db005ef00d65389eecf50c1321c18e8
1 file changed
+3
-3
t/t9902-completion.sh
+3
-3
@@ -486,7 +486,7 @@ test_expect_success 'git --help completion' '
486
test_expect_success 'setup for ref completion' '
487
echo content >file1 &&
488
echo more >file2 &&
489
- git add . &&
489
+ git add file1 file2 &&
490
git commit -m one &&
491
git branch mybranch &&
492
git tag mytag
@@ -517,7 +517,7 @@ test_expect_success '<ref>: completes paths' '
517
518
test_expect_success 'complete tree filename with spaces' '
519
echo content >"name with spaces" &&
520
- git add . &&
520
+ git add "name with spaces" &&
521
git commit -m spaces &&
522
test_completion "git show HEAD:nam" <<-\EOF
523
name with spaces Z
@@ -526,7 +526,7 @@ test_expect_success 'complete tree filename with spaces' '
526
527
test_expect_success 'complete tree filename with metacharacters' '
528
echo content >"name with \${meta}" &&
529
- git add . &&
529
+ git add "name with \${meta}" &&
530
git commit -m meta &&
531
test_completion "git show HEAD:nam" <<-\EOF
532
name with ${meta} Z