Skip to content

Commit d29932d

Browse files
committed
make use of new git-glob::Pattern::to_string() feature (#301)
1 parent 455a72e commit d29932d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

git-worktree/tests/worktree/fs/cache.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@ mod ignore_and_attributes {
200200
(None, None) => {
201201
assert!(!is_excluded);
202202
}
203-
(Some(m), Some((source_file, line, _pattern))) => {
203+
(Some(m), Some((source_file, line, pattern))) => {
204+
assert_eq!(m.pattern.to_string(), pattern);
204205
assert_eq!(m.sequence_number, line);
205206
// Paths read from the index are relative to the repo, and they don't exist locally due tot skip-worktree
206207
if m.source.map_or(false, |p| p.exists()) {

0 commit comments

Comments
 (0)