addurl: Always use whole url as destination filename, rather than only its file component.

First, this ensures that git annex addurl, when run repeatedly with the
same url, doesn't create duplicate files, which it did before when it
fell back to the longer filename.

Secondly, the file part of an url is frequently not very descriptive on its
own.

The uri scheme, auth, and port is intentionally left out, as clutter.
This commit is contained in:
Joey Hess 2011-09-07 19:04:51 -04:00
parent 7c768c0984
commit 03d6209e1c
3 changed files with 17 additions and 23 deletions

2
debian/changelog vendored
View file

@ -3,6 +3,8 @@ git-annex (3.20110907) UNRELEASED; urgency=low
* whereis: Show untrusted locations separately and do not include in
location count.
* Fix build without S3.
* addurl: Always use whole url as destination filename, rather than
only its file component.
-- Joey Hess <joeyh@debian.org> Tue, 06 Sep 2011 16:59:15 -0400