From a04ba045886e06b8ee160ac6e6a0f70dcbdbe8ba Mon Sep 17 00:00:00 2001 From: Ilya Grigoriev Date: Mon, 1 Mar 2021 00:41:37 -0800 Subject: [PATCH] Fix `git.fish` test failing because of an alias I have an alias `adda=add :/` in my globabl `.gitconfig`, which made the test fail. This is the fix. --- tests/checks/git.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/checks/git.fish b/tests/checks/git.fish index 5ffcc9bad..c81288ef8 100644 --- a/tests/checks/git.fish +++ b/tests/checks/git.fish @@ -24,7 +24,7 @@ git init >/dev/null 2>&1 # Note: We *can't* list all here because in addition to aliases, # git also uses all commands in $PATH called `git-something` as custom commands, # so this depends on system state! -complete -C'git ' | grep '^add' +complete -C'git ' | grep '^add\s' # (note: actual tab character in the check here) #CHECK: add Add file contents to the index