From f952731957b15f9876089b44d77cd0026a663a8e Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 28 Feb 2016 11:56:55 -0400 Subject: remove lower-casing of field names; metadata fields are case-insensative --- doc/tips/automatically_adding_metadata/pre-commit-annex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/tips') 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" } -- cgit v1.2.3