From 101e9ca217fdd179e0f9a955f973fb4b311d8921 Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Fri, 1 Sep 2023 10:05:31 +0100 Subject: [PATCH] Fix typo in test --- test/test_gitgutter.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/test_gitgutter.vim b/test/test_gitgutter.vim index 678af34..d5939ab 100644 --- a/test/test_gitgutter.vim +++ b/test/test_gitgutter.vim @@ -382,8 +382,7 @@ endfunction function Test_file_unknown_in_base() - let starting_branch = system('git branch --show-current') - let starting_branch = 'main' + let starting_branch = split(system('git branch --show-current'))[0] call system('git checkout -b some-feature') let tmp = 'file-on-this-branch-only.tmp' call system('echo "hi" > '.tmp.' && git add '.tmp)