From 02fe361055ce29e6bfc9b406412a13907d90c063 Mon Sep 17 00:00:00 2001 From: jt Date: Sat, 25 Mar 2023 03:22:50 +0000 Subject: [PATCH] Added a comment: securehashesonly conflicts with addurl --- ..._460d474cb8ef32d41eae71ee070de0b3._comment | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 doc/git-annex-addurl/comment_15_460d474cb8ef32d41eae71ee070de0b3._comment diff --git a/doc/git-annex-addurl/comment_15_460d474cb8ef32d41eae71ee070de0b3._comment b/doc/git-annex-addurl/comment_15_460d474cb8ef32d41eae71ee070de0b3._comment new file mode 100644 index 0000000000..1c8f523eb5 --- /dev/null +++ b/doc/git-annex-addurl/comment_15_460d474cb8ef32d41eae71ee070de0b3._comment @@ -0,0 +1,27 @@ +[[!comment format=mdwn + username="jt" + avatar="http://cdn.libravatar.org/avatar/920cb5f2bc783736e679d046aa7cf987" + subject="securehashesonly conflicts with addurl" + date="2023-03-25T03:22:50Z" + content=""" +Turning on `securehashesonly` seems to disable the `addurl` command: + +```console +% git config --get annex.securehashesonly +true +% git annex addurl https://www.gutenberg.org/cache/epub/2591/pg2591-images.html +addurl https://www.gutenberg.org/cache/epub/2591/pg2591-images.html + annex.securehashesonly blocked transfer of URL key +failed +addurl: 1 failed +% git annex addurl https://www.gutenberg.org/cache/epub/2591/pg2591-images.html --relaxed +addurl https://www.gutenberg.org/cache/epub/2591/pg2591-images.html (to www.gutenberg.org_cache_epub_2591_pg2591-images.html) ok +(recording state in git...) +% ls -l www.gutenberg.org_cache_epub_2591_pg2591-images.html +www.gutenberg.org_cache_epub_2591_pg2591-images.html -> .git/annex/objects/gg/kG/URL--https&c%%www.gutenberg.org%cache%epub%2591%pg2591-images.html/URL--https&c%%www.gutenberg.org%cache%epub%2591%pg2591-images.html +``` + +Does this have something to do with the URL prefix that the annex object has? + + +"""]]