diff options
author | 2015-06-18 17:33:15 +0000 | |
---|---|---|
committer | 2015-06-18 17:33:15 +0000 | |
commit | 6bbb6d41302ae5716bad80be98823f53b125f4e6 (patch) | |
tree | c273db70526a9e18173c55f2b02b06e9f8a01c92 /doc/todo | |
parent | 5b27183f074b275cb45d257c8cd6228ac393f444 (diff) |
proper way to override the download command?
Diffstat (limited to 'doc/todo')
-rw-r--r-- | doc/todo/easy_way_to_reproduce_normal_download_command.mdwn | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/todo/easy_way_to_reproduce_normal_download_command.mdwn b/doc/todo/easy_way_to_reproduce_normal_download_command.mdwn new file mode 100644 index 000000000..6846bc8a1 --- /dev/null +++ b/doc/todo/easy_way_to_reproduce_normal_download_command.mdwn @@ -0,0 +1,24 @@ +so there's a `annex.web-download-command` settings, great! i have used +it to do bandwidth limitations with: + + wget --limit-rate=$download -O %file %url + +...and it works well.. however, i notice the output is different, and +that's because once we override that setting, git-annex doesn't add +other magic settings it uses. so by turning that thing on and off and +inspecting the process list, i was able to figure out that the command +is actually: + + wget -q --show-progress --clobber -c --limit-rate=$download -O %file %url + +that gets me closer to the command generated by git-annex. however, i +am not sure the `--clobber` and `-c` flags should always be +present. furthermore, the `--user-agent +git-annex/5.20150610+gitg608172f-1~ndall+1` flag is missing. + +could there be an (optional) %useragent interpolation to fix that? + +what about the other settings, is it okay to hardcode those? + +maybe this would be easier if there would be an options override just +like rsync, but separate ones for curl and wget... --[[anarcat]] |