diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-02-28 11:56:55 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-02-28 11:56:55 -0400 |
commit | f952731957b15f9876089b44d77cd0026a663a8e (patch) | |
tree | f795778eec66ece560f3a98b03ea2b698d929b20 | |
parent | b8fad6899b8083502627285f2598a8202a0f0bd8 (diff) |
remove lower-casing of field names; metadata fields are case-insensative
-rwxr-xr-x | doc/tips/automatically_adding_metadata/pre-commit-annex | 2 |
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" } |