summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-02-28 11:56:55 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-02-28 11:56:55 -0400
commitf952731957b15f9876089b44d77cd0026a663a8e (patch)
treef795778eec66ece560f3a98b03ea2b698d929b20
parentb8fad6899b8083502627285f2598a8202a0f0bd8 (diff)
remove lower-casing of field names; metadata fields are case-insensative
-rwxr-xr-xdoc/tips/automatically_adding_metadata/pre-commit-annex2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/tips/automatically_adding_metadata/pre-commit-annex b/doc/tips/automatically_adding_metadata/pre-commit-annex
index 61717c8a5..a77f7a8e3 100755
--- a/doc/tips/automatically_adding_metadata/pre-commit-annex
+++ b/doc/tips/automatically_adding_metadata/pre-commit-annex
@@ -70,7 +70,7 @@ addmeta() {
file="$1"
field="$2"
value="$3"
- afield="$(echo "$field" | tr ' ' '_' | tr 'A-Z' 'a-z')"
+ afield="$(echo "$field" | tr ' ' '_')"
git -c annex.alwayscommit=false annex metadata \
--set "$afield$equal$value" --quiet -- "$file"
}