diff --git a/doc/bugs/Missing_file_content_in_secondary_worktree___40__win__41__.mdwn b/doc/bugs/Missing_file_content_in_secondary_worktree___40__win__41__.mdwn new file mode 100644 index 0000000000..e99aec49d3 --- /dev/null +++ b/doc/bugs/Missing_file_content_in_secondary_worktree___40__win__41__.mdwn @@ -0,0 +1,98 @@ +### Please describe the problem. + +In a secondary worktree on Windows, pointer files remain even with keys being available. +A git annex get fails with "not available", even though "whereis" reports "[here]". + +I would expect the behavior to be internally consistent (keys being available in the +worktree when they are found to be available in the repository). + +This report assumes that secondary worktrees are, in principle, a supported use case, +based on the statement at https://git-annex.branchable.com/tips/Using_git-worktree_with_annex/: +"Getting, dropping and syncing content works fine in a worktree". + +### What steps will reproduce the problem? + +``` +C:\Users\mih>md demo +C:\Users\mih>cd demo +C:\Users\mih\demo>git init +Initialized empty Git repository in C:/Users/mih/demo/.git/ + +C:\Users\mih\demo>git annex init +init + Detected a filesystem without fifo support. + Disabling ssh connection caching. + Detected a crippled filesystem. + Entering an adjusted branch where files are unlocked as this filesystem does not support locked files. +Switched to branch 'adjusted/master(unlocked)' +ok +(recording state in git...) + +C:\Users\mih\demo>echo "onetwothree" > 123.txt +C:\Users\mih\demo>git annex add 123.txt +add 123.txt +ok +(recording state in git...) +C:\Users\mih\demo>git commit -m Demo +[adjusted/master(unlocked) abf6dc4] Demo + 1 file changed, 1 insertion(+) + create mode 100644 123.txt + +C:\Users\mih\demo>git status +On branch adjusted/master(unlocked) +nothing to commit, working tree clean + +C:\Users\mih\demo>git worktree add ..\demo-wt2 +Preparing worktree (new branch 'demo-wt2') +HEAD is now at abf6dc4 Demo + +C:\Users\mih\demo>cd ..\demo-wt2 +C:\Users\mih\demo-wt2>dir + Volume in drive C is Windows + Volume Serial Number is ECB5-B3C0 + + Directory of C:\Users\mih\demo-wt2 + +08/07/2025 12:30