add worktree test
This commit is contained in:
parent
29716aa141
commit
832e77e555
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,5 @@
|
||||
.test_info.*
|
||||
lastlog.jsonl
|
||||
*.bak
|
||||
lab
|
||||
.envrc
|
||||
|
12
xt/worktree-clean.t
Normal file
12
xt/worktree-clean.t
Normal 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;
|
Loading…
Reference in New Issue
Block a user