addurl, importfeed: Honor annex.diskreserve as long as the size of the url can be checked.

This adds a http HEAD before the download is done. That was already the
case when the assistant was running, and it seems worth it to avoid filling
up the whole disk, like happened to my server today.
This commit is contained in:
Joey Hess 2014-01-04 15:08:06 -04:00
parent df9df7ec94
commit f9e7b6cf61
3 changed files with 42 additions and 32 deletions

2
debian/changelog vendored
View file

@ -15,6 +15,8 @@ git-annex (5.20131231) UNRELEASED; urgency=medium
* assistant: Ensure that .ssh/config and .ssh/authorized_keys are not
group or world writable when writing to those files, as that can make
ssh refuse to use them, if it allows another user to write to them.
* addurl, importfeed: Honor annex.diskreserve as long as the size of the
url can be checked.
-- Joey Hess <joeyh@debian.org> Tue, 31 Dec 2013 13:41:18 -0400