From 3558ca5d886b88a5ee3544bb15d513a2458fd355 Mon Sep 17 00:00:00 2001 From: ericm Date: Sun, 25 Oct 2020 17:32:44 +0000 Subject: [PATCH] --- ...rerred_content_expression_not_working.mdwn | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 doc/forum/include__61__subdir__47____42___in_prefererred_content_expression_not_working.mdwn diff --git a/doc/forum/include__61__subdir__47____42___in_prefererred_content_expression_not_working.mdwn b/doc/forum/include__61__subdir__47____42___in_prefererred_content_expression_not_working.mdwn new file mode 100644 index 0000000000..275a052b4a --- /dev/null +++ b/doc/forum/include__61__subdir__47____42___in_prefererred_content_expression_not_working.mdwn @@ -0,0 +1,31 @@ +Hi there, + +If I use a preferred content expression like the following: + + include=subdir/* + +it does not work in commands like `git annex get --auto`. + +But the following works: + + include=* + +Here is a short bash script that can be used to recreate this issue: + + mkdir annexA && cd annexA + git init && git annex init + git remote add annexB ../annexB + + mkdir ../annexB && cd ../annexB + git init && git annex init + git annex wanted . "include=subdir/*" + git remote add annexA ../annexA + + cd ../annexA && mkdir subdir + echo "lorem ipsum" > subdir/test.txt + git annex add . && git annex sync + + cd ../annexB && git annex sync + git annex get --auto + +I'm using **Git 2.28.0.windows.1** and **git-annex 8.20200815-g335aae266**. -- 2.30.2