From e31374f865e3d5bccc858b20339c18883817065a Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Wed, 8 Apr 2026 08:46:13 -0700 Subject: [PATCH 1/1] Escape glob characters in filenames in gitattributes --- annex-ec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/annex-ec b/annex-ec index 4741759..a8cf298 100755 --- a/annex-ec +++ b/annex-ec @@ -118,7 +118,12 @@ for f in ec/"$name.vol"*;do done for f;do - echo "${f// /[[:space:]]} annex.numcopies=1" >> .gitattributes + f=${f//\\/\\\\} + f=${f//\[/\\[} + f=${f//\*/\\*} + f=${f//\?/\\?} + f=${f// /[[:space:]]} + echo "$f annex.numcopies=1" >> .gitattributes done for volume in here "${volumes[@]}";do -- 2.51.2