add worktree test

This commit is contained in:
Yanick Champoux 2023-11-15 09:20:19 -05:00
parent 29716aa141
commit 832e77e555
2 changed files with 14 additions and 0 deletions

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
.test_info.*
lastlog.jsonl
*.bak
lab
.envrc

12
xt/worktree-clean.t Normal file
View File

@ -0,0 +1,12 @@
use Test2::V0;
use Git::Wrapper;
my $git = Git::Wrapper->new('.');
my $status = $git->status;
# note: 'yath' might create .test_info and lastlog.jsonl files
ok !$status->is_dirty => "worktree is clean";
done_testing;