Skip to content

Commit fd87ac0

Browse files
committed
add a test to trigger the truncate requirement during checkout
1 parent aab78f1 commit fd87ac0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gix-worktree-state/tests/state/checkout.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ fn overwriting_files_and_lone_directories_works() -> crate::Result {
199199
|d| {
200200
let empty = d.join("empty");
201201
symlink::symlink_dir(d.join(".."), &empty)?; // empty is symlink to the directory above
202-
std::fs::write(d.join("executable"), b"foo")?; // executable is regular file and has different content
202+
std::fs::write(d.join("executable"), b"longer content foo bar")?; // executable is regular file and has different content
203203
let dir = d.join("dir");
204204
std::fs::create_dir(&dir)?;
205205
std::fs::create_dir(dir.join("content"))?; // 'content' is a directory now

0 commit comments

Comments
 (0)