Merge branch 'master' of ssh://git-annex.branchable.com

This commit is contained in:
Joey Hess 2022-12-22 14:34:16 -04:00
commit bda406ff90
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 126 additions and 0 deletions

View file

@ -0,0 +1,37 @@
[[!comment format=mdwn
username="nobodyinperson"
avatar="http://cdn.libravatar.org/avatar/736a41cd4988ede057bae805d000f4f5"
subject="comment 2"
date="2022-12-22T11:39:41Z"
content="""
Thanks joey! However I don't think it works quite now. Slightly modifying the script above I made a [testsuite](https://gitlab.com/-/snippets/2475815) and it seems metadata fields are still interpreted as numbers somehow:
```bash
# old version without lexicographical ordering
git annex version --raw
10.20221212-gab11fd70e
bash make-git-annex-dir-with-timestamps.sh %s %Y%m%d%H%M%S %Y.%m%d%H%M%S %Y:%m%d%H%M%S %Y-%m-%dT%H%:M:%S %Y-%m-%dT%H%:M:%S%z %FT%T %FT%T%z
%s ok
%Y%m%d%H%M%S ok
%Y.%m%d%H%M%S ok
%Y:%m%d%H%M%S fail
%Y-%m-%dT%H%:M:%S fail
%Y-%m-%dT%H%:M:%S%z fail
%FT%T fail
%FT%T%z fail
# new version apparently with lexicographical ordering but no change
git annex version --raw
10.20221213-gac6ccb513
bash make-git-annex-dir-with-timestamps.sh %s %Y%m%d%H%M%S %Y.%m%d%H%M%S %Y:%m%d%H%M%S %Y-%m-%dT%H%:M:%S %Y-%m-%dT%H%:M:%S%z %FT%T %FT%T%z
%s ok
%Y%m%d%H%M%S ok
%Y.%m%d%H%M%S ok
%Y:%m%d%H%M%S fail
%Y-%m-%dT%H%:M:%S fail
%Y-%m-%dT%H%:M:%S%z fail
%FT%T fail
%FT%T%z fail
```
"""]]