Skip to content

Commit f03efba

Browse files
Felipe Contrerasgitster
authored andcommitted
completion: document tilde expansion failure in tests
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent ddf07bd commit f03efba

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

t/t9902-completion.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,4 +415,13 @@ test_expect_success 'complete files' '
415415
test_completion "git add mom" "momified"
416416
'
417417

418+
test_expect_failure 'complete with tilde expansion' '
419+
git init tmp && cd tmp &&
420+
test_when_finished "cd .. && rm -rf tmp" &&
421+
422+
touch ~/tmp/file &&
423+
424+
test_completion "git add ~/tmp/" "~/tmp/file"
425+
'
426+
418427
test_done

0 commit comments

Comments
 (0)