From: Scott Worley Date: Wed, 8 Apr 2026 15:46:13 +0000 (-0700) Subject: Escape glob characters in filenames in gitattributes X-Git-Url: http://git.scottworley.com/annex-ec/commitdiff_plain/e31374f865e3d5bccc858b20339c18883817065a?ds=sidebyside Escape glob characters in filenames in gitattributes --- 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