Actually fix git test

This commit is contained in:
Ilan Cosman 2021-02-10 16:13:16 -08:00
parent 8edd4772d7
commit 5ca5eb7fc3

View File

@ -4,15 +4,16 @@ function _git
_tide_decolor (_tide_item_git)
end
# Not in git repo
_git # CHECK:
# Initial setup
# Create directory
set -l dir ~/gitItemTest
rm -rf $dir
mkdir -p $dir
cd $dir
# Not in git repo
_git # CHECK:
# Create git repo and main branch
git init >/dev/null 2>&1
git checkout -b main >/dev/null 2>&1