(no commit message)
authorericm <ericm@web>
Sun, 25 Oct 2020 17:32:44 +0000 (17:32 +0000)
committeradmin <admin@branchable.com>
Sun, 25 Oct 2020 17:32:44 +0000 (17:32 +0000)
doc/forum/include__61__subdir__47____42___in_prefererred_content_expression_not_working.mdwn [new file with mode: 0644]

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 (file)
index 0000000..275a052
--- /dev/null
@@ -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**.