Skip to content

Commit fd13355

Browse files
committed
Make sure .wtfiles always follow worktree
1 parent 091330c commit fd13355

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/utils.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,12 @@ let copy_wtfiles source_root target_root =
9696
match read_file wtfiles_path with
9797
| None -> ()
9898
| Some contents ->
99+
copy_path wtfiles_path (Filename.concat target_root ".wtfiles");
100+
Printf.eprintf "Copied .wtfiles\n";
99101
let lines = String.split_on_char '\n' contents in
100102
List.iter (fun line ->
101103
let line = String.trim line in
102-
if line <> "" && (String.length line = 0 || line.[0] <> '#') then
104+
if line <> "" && line <> ".wtfiles" && line.[0] <> '#' then
103105
let src = Filename.concat source_root line in
104106
let dst = Filename.concat target_root line in
105107
if Sys.file_exists src then begin

0 commit comments

Comments
 (0)