summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGravatar https://me.yahoo.com/a/EbvxpTI_xP9Aod7Mg4cwGhgjrCrdM5s-#7c0f4 <https://me.yahoo.com/a/EbvxpTI_xP9Aod7Mg4cwGhgjrCrdM5s-#7c0f4@web>2016-01-11 16:47:04 +0000
committerGravatar admin <admin@branchable.com>2016-01-11 16:47:04 +0000
commit9c84cf9ce7bc77c7ecff75eb3716a5b5e5a7e27d (patch)
treec324256d64b72a6a6876aee915119e6f5ef17418 /doc
parent76ad7b2ce8bdf991d72872ad40ae828457bc946d (diff)
Diffstat (limited to 'doc')
-rw-r--r--doc/bugs/addurl_--file__causes_file_redownload_even_if_it_already_present.mdwn24
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/bugs/addurl_--file__causes_file_redownload_even_if_it_already_present.mdwn b/doc/bugs/addurl_--file__causes_file_redownload_even_if_it_already_present.mdwn
new file mode 100644
index 000000000..1016966e3
--- /dev/null
+++ b/doc/bugs/addurl_--file__causes_file_redownload_even_if_it_already_present.mdwn
@@ -0,0 +1,24 @@
+### Please describe the problem.
+
+IMHO annex shouldn't redownload the file (not yet under annex/git control) entirely if pointed by --file=FILE FILE exists.
+
+[[!format sh """
+$> chmod a+w -R /tmp/123; rm -rf /tmp/123; mkdir /tmp/123; cd /tmp/123; git init; git annex init;
+Initialized empty Git repository in /tmp/123/.git/
+init ok
+
+$> wget -q http://www.onerussian.com/tmp/banner.png
+
+$> ls -l
+total 28
+-rw------- 1 yoh yoh 25319 Sep 17 13:49 banner.png
+
+$> git annex addurl --file=banner.png http://www.onerussian.com/tmp/banner.png
+addurl banner.png (downloading http://www.onerussian.com/tmp/banner.png ...)
+/tmp/123/.git/annex/tmp/URL-s25319--http&c%%w 100%[=================================================================================================>] 24.73K --.-KB/s in 0.003s
+ok
+
+$> git annex version
+git-annex version: 6.20160104+gitg0cf96be-1~ndall+1
+"""]
+[[!meta author=yoh]]