From b390a4012c52394be7d60ed52225120fd1be4ec4 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 19 Oct 2020 15:24:38 -0400 Subject: [PATCH] bug --- doc/bugs/add_--largerthan_reversion.mdwn | 20 +++++++++++++++++++ ..._b0319c1214c26f64058eb9c38ef6fb0d._comment | 7 +++++++ 2 files changed, 27 insertions(+) create mode 100644 doc/bugs/add_--largerthan_reversion.mdwn create mode 100644 doc/forum/Matching_options_not_working_in_windows_7/comment_2_b0319c1214c26f64058eb9c38ef6fb0d._comment diff --git a/doc/bugs/add_--largerthan_reversion.mdwn b/doc/bugs/add_--largerthan_reversion.mdwn new file mode 100644 index 0000000000..850efdfbe1 --- /dev/null +++ b/doc/bugs/add_--largerthan_reversion.mdwn @@ -0,0 +1,20 @@ +`git annex add --largerthan=200mb` of a new file +does not add a file that is large enough. + +This is a reversion, introduced last year in +[[!commit 3066bdb1fb60e80f40b5badc150fb6eb51a922bb]]. + +`git annex import /dir --largerthan=100mb` is also affected, and has an +ugly fail mode as it tries to look up an annexed file outside the repo: + + joey@darkstar:~/tmp/t>git annex import --largerthan=100mb ../d + fatal: './../d/foo' is outside repository at '/home/joey/tmp/t' + +That commit was otherwise right, eg `git-annex get --largerthan` should +look at the size of the annexed file, not of the file on disk, which could +be a small pointer file. + +Rather than being global options, --largerthan and --smallerthan, +could added by each command, so the command can specify how the size +should be determined. Finding a way to do that w/o needing to add +boilerplate to many commands would be best. diff --git a/doc/forum/Matching_options_not_working_in_windows_7/comment_2_b0319c1214c26f64058eb9c38ef6fb0d._comment b/doc/forum/Matching_options_not_working_in_windows_7/comment_2_b0319c1214c26f64058eb9c38ef6fb0d._comment new file mode 100644 index 0000000000..47f7f691a1 --- /dev/null +++ b/doc/forum/Matching_options_not_working_in_windows_7/comment_2_b0319c1214c26f64058eb9c38ef6fb0d._comment @@ -0,0 +1,7 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 2""" + date="2020-10-19T19:12:25Z" + content=""" +Opened a bug, [[bugs/add_--largerthan_reversion]] +"""]] -- 2.30.2