git-annex.git
4 years agoclose dup
Joey Hess [Thu, 2 Sep 2021 22:50:05 +0000 (18:50 -0400)]
close dup

4 years agodefer write permissions checking in import until after copy to repo
Joey Hess [Thu, 2 Sep 2021 17:45:21 +0000 (13:45 -0400)]
defer write permissions checking in import until after copy to repo

This should complete the fix started in
6329997ac44691937f1d7fe6a71da3184237b13b, fixing the actual cause of the
test suite failure this time.

Sponsored-by: Dartmouth College's Datalad project
4 years agocomment
Joey Hess [Thu, 2 Sep 2021 16:58:46 +0000 (12:58 -0400)]
comment

4 years agoreopen
Joey Hess [Thu, 2 Sep 2021 16:24:03 +0000 (12:24 -0400)]
reopen

4 years agofix windows build
Joey Hess [Thu, 2 Sep 2021 16:21:25 +0000 (12:21 -0400)]
fix windows build

4 years ago(no commit message)
jwodder [Thu, 2 Sep 2021 14:48:00 +0000 (14:48 +0000)]

4 years agoAdded a comment
scy [Thu, 2 Sep 2021 08:17:03 +0000 (08:17 +0000)]
Added a comment

4 years agoAdded a comment
jkniiv [Thu, 2 Sep 2021 05:24:14 +0000 (05:24 +0000)]
Added a comment

4 years agoadd author meta
jkniiv [Thu, 2 Sep 2021 04:39:12 +0000 (04:39 +0000)]
add author meta

4 years agocommit 9595a247a doesn't compile on Windows without reverting a small previous change
jkniiv [Thu, 2 Sep 2021 04:29:16 +0000 (04:29 +0000)]
commit 9595a247a doesn't compile on Windows without reverting a small previous change

4 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Wed, 1 Sep 2021 19:35:32 +0000 (15:35 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

4 years agoimprove url download failure display
Joey Hess [Wed, 1 Sep 2021 19:28:22 +0000 (15:28 -0400)]
improve url download failure display

* When downloading urls fail, explain which urls failed for which
  reasons.
* web: Avoid displaying a warning when downloading one url failed
  but another url later succeeded.

Some other uses of downloadUrl use urls that are effectively internal use,
and should not all be displayed to the user on failure. Eg, Remote.Git
tries different urls where content could be located depending on how the
remote repo is set up. Exposing those urls to the user would lead to wild
goose chases. So had to parameterize it to control whether it displays urls
or not.

A side effect of this change is that when there are some youtube urls
and some regular urls, it will try regular urls first, even if the
youtube urls are listed first. This seems like an improvement if
anything, but in any case there's no defined order of urls that it's
supposed to use.

Sponsored-by: Dartmouth College's Datalad project
4 years agoAdded a comment
yarikoptic [Wed, 1 Sep 2021 18:05:26 +0000 (18:05 +0000)]
Added a comment

4 years agoAdded a comment
yarikoptic [Wed, 1 Sep 2021 16:22:22 +0000 (16:22 +0000)]
Added a comment

4 years agocomment
Joey Hess [Wed, 1 Sep 2021 15:43:51 +0000 (11:43 -0400)]
comment

4 years agoAdded a comment: clarification
yarikoptic [Wed, 1 Sep 2021 15:39:06 +0000 (15:39 +0000)]
Added a comment: clarification

4 years agofix test suite failure on windows
Joey Hess [Wed, 1 Sep 2021 15:32:25 +0000 (11:32 -0400)]
fix test suite failure on windows

This was maybe a real bug too, although I don't know what circumstances
it would be a problem. See comment for analysis of this windows drive
letter wackyness issue.

Sponsored-by: Brock Spratlen on Patreon
4 years agoclose
Joey Hess [Wed, 1 Sep 2021 14:47:33 +0000 (10:47 -0400)]
close

4 years agoskip test_readonly on windows
Joey Hess [Wed, 1 Sep 2021 14:42:50 +0000 (10:42 -0400)]
skip test_readonly on windows

       drop vs readonly repo failed (transcript follows)
      drop foo
      failed
      git-annex: .git\annex\objects\6cd\e82\SHA256E-s20--e394a389d787383843decc5d3d99b6d184ffa5fddeec23b911f9ee7fc8b9ea77\SHA256E-s20--e394a389d787383843decc5d3d99b6d184ffa5fddeec23b911f9ee7fc8b9ea77: DeleteFile "\\\\?\\C:\\Users\\runneradmin\\.t\\tmprepo3\\.git\\annex\\objects\\6cd\\e82\\SHA256E-s20--e394a389d787383843decc5d3d99b6d184ffa5fddeec23b911f9ee7fc8b9ea77\\SHA256E-s20--e394a389d787383843decc5d3d99b6d184ffa5fddeec23b911f9ee7fc8b9ea77": permission denied (Access is denied.)

This is a bit surprising, it seems that chmod -R -w on windows actually
had some effect. But also, on Windows lockContentShared
has to write to a lock file, so it cannot work in a readonly repo.
So git-annex cannot support readonly repos on Windows.

Sponsored-by: Dartmouth College's Datalad project
4 years agoinit: check for filesystem where write bit cannot be removed
Joey Hess [Wed, 1 Sep 2021 14:27:28 +0000 (10:27 -0400)]
init: check for filesystem where write bit cannot be removed

This fixes a reversion caused by a99a84f3420a1d93e4ecd4b8cf30638b48e2758e,
when git-annex init is run as root on a FAT filesystem mounted with
hdiutil on OSX. Such a mount point has file mode 777 for everything and
it cannot be changed. The existing crippled filesystem test tried to
write to a file after removing write bit, but that test does not run as
root (since root can write to unwritable files). So added a check of the
write permissions of the file, after attempting to remove them.

Sponsored-by: Dartmouth College's Datalad project
4 years agoprop_relPathDirToFileAbs_basics fails on occasion
jkniiv@b330fc3a602d36a37a67b2a2d99d4bed3bb653cb [Tue, 31 Aug 2021 21:44:25 +0000 (21:44 +0000)]
prop_relPathDirToFileAbs_basics fails on occasion

4 years agoAdded a comment
jkniiv@b330fc3a602d36a37a67b2a2d99d4bed3bb653cb [Tue, 31 Aug 2021 20:47:24 +0000 (20:47 +0000)]
Added a comment

4 years agoinitial TODO on improving 'get' errors reporting
yarikoptic [Tue, 31 Aug 2021 14:40:48 +0000 (14:40 +0000)]
initial TODO on improving 'get' errors reporting

4 years agoreport on 2 tests fail on crippled FS on mac
yarikoptic [Tue, 31 Aug 2021 14:20:15 +0000 (14:20 +0000)]
report on 2 tests fail on crippled FS on mac

4 years agoinitial report
yarikoptic [Tue, 31 Aug 2021 14:13:11 +0000 (14:13 +0000)]
initial report

4 years agoAdded a comment: just an update on my testing
yarikoptic [Mon, 30 Aug 2021 22:17:53 +0000 (22:17 +0000)]
Added a comment: just an update on my testing

4 years agoadd test case for readonly remote
Joey Hess [Mon, 30 Aug 2021 20:39:02 +0000 (16:39 -0400)]
add test case for readonly remote

Tests for the reversion fixed in 837116ef1e253f82726b023bfe6ca46777060e27
and similar problems.

Sponsored-by: Dartmouth College's Datalad project
4 years agocomment
Joey Hess [Mon, 30 Aug 2021 18:42:09 +0000 (14:42 -0400)]
comment

4 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 30 Aug 2021 18:37:32 +0000 (14:37 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

4 years agoupdate
Joey Hess [Mon, 30 Aug 2021 18:34:25 +0000 (14:34 -0400)]
update

4 years agoidea for making more special remotes support importtree
Joey Hess [Mon, 30 Aug 2021 17:54:46 +0000 (13:54 -0400)]
idea for making more special remotes support importtree

Sponsored-by: Jack Hill on Patreon
4 years agoAdded a comment: reproducer
yarikoptic [Mon, 30 Aug 2021 18:07:05 +0000 (18:07 +0000)]
Added a comment: reproducer

4 years agoAdded a comment
yarikoptic [Mon, 30 Aug 2021 17:24:25 +0000 (17:24 +0000)]
Added a comment

4 years agodecorate openTempFile errors with the template name
Joey Hess [Mon, 30 Aug 2021 17:05:02 +0000 (13:05 -0400)]
decorate openTempFile errors with the template name

This is to track down what file in .git/annex/ is being written to via a
temp file when the repository is read-only.

Sponsored-by: Dartmouth College's Datalad project
4 years agoFix support for readonly git remotes
Joey Hess [Mon, 30 Aug 2021 16:34:19 +0000 (12:34 -0400)]
Fix support for readonly git remotes

Boolean blindness oops.

(Reversion in version 8.20210621)

Sponsored-by: Dartmouth College's Datalad project
4 years agocomment
Joey Hess [Mon, 30 Aug 2021 16:08:01 +0000 (12:08 -0400)]
comment

4 years agocomment
Joey Hess [Mon, 30 Aug 2021 16:06:28 +0000 (12:06 -0400)]
comment

4 years agocomment
Joey Hess [Mon, 30 Aug 2021 16:02:52 +0000 (12:02 -0400)]
comment

4 years ago(no commit message)
LazerEpilasyon [Mon, 30 Aug 2021 11:32:34 +0000 (11:32 +0000)]

4 years ago(no commit message)
strmd [Sat, 28 Aug 2021 09:30:28 +0000 (09:30 +0000)]

4 years agoAdded a comment
yarikoptic [Fri, 27 Aug 2021 18:46:39 +0000 (18:46 +0000)]
Added a comment

4 years agoadd: Detect when xattrs or perhaps ACLs prevent locking down a file's content
Joey Hess [Fri, 27 Aug 2021 18:33:01 +0000 (14:33 -0400)]
add: Detect when xattrs or perhaps ACLs prevent locking down a file's content

And fail with an informative message.

I don't think ACLs can prevent removing the write bit, but I'm not sure,
so kept it mentioning them as a possibility.

Should git-annex lock also check if the write bits are able to be removed?
Maybe, but the case I know about with xattrs involves cp -a copying NFS
xattrs, and it's the copy of the file that is the problem. So when locking
a file, I guess it will not be the copy.

Sponsored-by: Dartmouth College's Datalad project
4 years agoRun cp -a with --no-preserve=xattr, to avoid problems with copied xattrs
Joey Hess [Fri, 27 Aug 2021 17:09:34 +0000 (13:09 -0400)]
Run cp -a with --no-preserve=xattr, to avoid problems with copied xattrs

Including them breaking permissions setting on some NFS servers.

Sponsored-by: Dartmouth College's Datalad project
4 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Fri, 27 Aug 2021 16:30:35 +0000 (12:30 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

4 years agoAdded annex.youtube-dl-command config
Joey Hess [Fri, 27 Aug 2021 13:44:23 +0000 (09:44 -0400)]
Added annex.youtube-dl-command config

This can be used to run some forks of youtube-dl.

Sponsored-by: Brett Eisenberg on Patreon
4 years agothought
Joey Hess [Fri, 27 Aug 2021 04:59:24 +0000 (00:59 -0400)]
thought

4 years agoAdded a comment
yarikoptic [Fri, 27 Aug 2021 01:38:54 +0000 (01:38 +0000)]
Added a comment

4 years agoAdded a comment: it turns out I had to file this as a bug
jkniiv@b330fc3a602d36a37a67b2a2d99d4bed3bb653cb [Fri, 27 Aug 2021 01:38:29 +0000 (01:38 +0000)]
Added a comment: it turns out I had to file this as a bug

4 years agoAdded a comment
yarikoptic [Fri, 27 Aug 2021 01:34:18 +0000 (01:34 +0000)]
Added a comment

4 years agosometimes `sync --content` really does take longer to get a file than `get`
jkniiv@b330fc3a602d36a37a67b2a2d99d4bed3bb653cb [Fri, 27 Aug 2021 00:58:18 +0000 (00:58 +0000)]
sometimes `sync --content` really does take longer to get a file than `get`

4 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Thu, 26 Aug 2021 21:26:49 +0000 (17:26 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

4 years agocomment
Joey Hess [Thu, 26 Aug 2021 21:25:33 +0000 (17:25 -0400)]
comment

4 years agoAdded a comment
nothingmuch@486b0e001f63ad0513f9fc6921a31f08832ba22d [Thu, 26 Aug 2021 21:19:43 +0000 (21:19 +0000)]
Added a comment

4 years agoAdded a comment
yarikoptic [Thu, 26 Aug 2021 16:49:56 +0000 (16:49 +0000)]
Added a comment

4 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Thu, 26 Aug 2021 16:01:24 +0000 (12:01 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

4 years agocomment
Joey Hess [Thu, 26 Aug 2021 16:01:15 +0000 (12:01 -0400)]
comment

4 years agoremoved
jenkin.schibel@286264d9ceb79998aecff0d5d1a4ffe34f8b8421 [Thu, 26 Aug 2021 15:21:24 +0000 (15:21 +0000)]
removed

4 years agoAdded a comment: i would like to have this feature revisted, collaberative wiki editing
jenkin.schibel@286264d9ceb79998aecff0d5d1a4ffe34f8b8421 [Thu, 26 Aug 2021 15:20:56 +0000 (15:20 +0000)]
Added a comment: i would like to have this feature revisted, collaberative wiki editing

4 years agoAdded a comment: i would like to have this feature revisted, collaberative wiki editing
jenkin.schibel@286264d9ceb79998aecff0d5d1a4ffe34f8b8421 [Thu, 26 Aug 2021 15:20:28 +0000 (15:20 +0000)]
Added a comment: i would like to have this feature revisted, collaberative wiki editing

4 years agoAdded a comment
yarikoptic [Wed, 25 Aug 2021 22:05:06 +0000 (22:05 +0000)]
Added a comment

4 years agoinitial report on inability to get data of others via ssh
yarikoptic [Wed, 25 Aug 2021 20:30:52 +0000 (20:30 +0000)]
initial report on inability to get data of others via ssh

4 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Wed, 25 Aug 2021 18:22:11 +0000 (14:22 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

4 years ago--batch-keys
Joey Hess [Wed, 25 Aug 2021 18:20:33 +0000 (14:20 -0400)]
--batch-keys

New --batch-keys option added to these commands:  get, drop, move, copy, whereis

git-annex-matching-options had to be reworded since some of its options
can be used to match on keys, not only files.

Sponsored-by: Luke Shumaker on Patreon
4 years agoAdded a comment: will do
jkniiv@b330fc3a602d36a37a67b2a2d99d4bed3bb653cb [Tue, 24 Aug 2021 21:45:28 +0000 (21:45 +0000)]
Added a comment: will do

4 years agocomment
Joey Hess [Tue, 24 Aug 2021 19:02:53 +0000 (15:02 -0400)]
comment

4 years agoAdded a comment
yarikoptic [Tue, 24 Aug 2021 18:06:10 +0000 (18:06 +0000)]
Added a comment

4 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 24 Aug 2021 18:04:03 +0000 (14:04 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

4 years agoFix test suite failure on Windows
Joey Hess [Tue, 24 Aug 2021 18:03:29 +0000 (14:03 -0400)]
Fix test suite failure on Windows

It would be better if the Arbitrary instance avoided generating impossible
filenames like "foo/c:bar", but proably this is the only place that splits
the file from the directory and then uses the file without the directory..
At least on the quickcheck properties.

Sponsored-by: Svenne Krap on Patreon
4 years agounused: Skip the refs/annex/last-index ref that git-annex recently started creating
Joey Hess [Tue, 24 Aug 2021 16:58:14 +0000 (12:58 -0400)]
unused: Skip the refs/annex/last-index ref that git-annex recently started creating

This was unlikely to cause any problem, but it is unsightly to mention
normally hidden refs, and it might have done a bit of unnecessary work to
check that ref.

Sponsored-by: Noam Kremen on Patreon
4 years agocomment
Joey Hess [Tue, 24 Aug 2021 16:53:24 +0000 (12:53 -0400)]
comment

4 years agocomment, improve docs
Joey Hess [Tue, 24 Aug 2021 16:45:13 +0000 (12:45 -0400)]
comment, improve docs

4 years agocomment
Joey Hess [Tue, 24 Aug 2021 16:38:08 +0000 (12:38 -0400)]
comment

4 years agoAdded a comment: more info
yarikoptic [Tue, 24 Aug 2021 16:35:26 +0000 (16:35 +0000)]
Added a comment: more info

4 years agocomment
Joey Hess [Tue, 24 Aug 2021 16:25:55 +0000 (12:25 -0400)]
comment

4 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 24 Aug 2021 16:00:22 +0000 (12:00 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

4 years agoretitle
Joey Hess [Tue, 24 Aug 2021 16:00:06 +0000 (12:00 -0400)]
retitle

4 years agocomment
Joey Hess [Tue, 24 Aug 2021 15:57:51 +0000 (11:57 -0400)]
comment

4 years agopoll vote (OpenStack SWIFT)
2003:e4:1f1d:ac00:e7e9:509d:6f4a:34a4 [Tue, 24 Aug 2021 15:49:53 +0000 (15:49 +0000)]
poll vote (OpenStack SWIFT)

4 years agocomment
Joey Hess [Tue, 24 Aug 2021 15:10:23 +0000 (11:10 -0400)]
comment

4 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 24 Aug 2021 15:07:39 +0000 (11:07 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

4 years agocomment
Joey Hess [Tue, 24 Aug 2021 15:07:19 +0000 (11:07 -0400)]
comment

4 years agoAdd a tip explaining how to enable-tor on NixOS
Yuval Kogman [Tue, 24 Aug 2021 04:34:55 +0000 (04:34 +0000)]
Add a tip explaining how to enable-tor on NixOS

This is a little bare bones but hopefully useful, some things that could
be improved:

1. Follow steps in order and replicate (I reconstructed off of my
   success, so there may be inaccuracies or things I forgot)

2. Clarify correct ownership for directories & sockets
   - enable-tor's sudo child will obtain the hostname so no access is
     needed after that
   - does it also create the tor sockety directory?

3. Remove unnecessary boilerplate
   - can the hidden service dir be left with the NixOS default?

4 years ago(no commit message)
login+git-annex@12145486ec1e9f0d1587cdb0c6ef7538abab1c31 [Sat, 21 Aug 2021 00:37:20 +0000 (00:37 +0000)]

4 years agoAdded a comment: `git annex sync --no-commit --content` takes double the time of...
jkniiv@b330fc3a602d36a37a67b2a2d99d4bed3bb653cb [Fri, 20 Aug 2021 02:05:53 +0000 (02:05 +0000)]
Added a comment: `git annex sync --no-commit --content` takes double the time of `git annex get .`

4 years ago(no commit message)
anarcat [Thu, 19 Aug 2021 14:44:56 +0000 (14:44 +0000)]

4 years agoclose
Joey Hess [Wed, 18 Aug 2021 21:37:17 +0000 (17:37 -0400)]
close

4 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Wed, 18 Aug 2021 21:36:35 +0000 (17:36 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

4 years agofix test suite failure when run with LANG=C
Joey Hess [Wed, 18 Aug 2021 21:36:00 +0000 (17:36 -0400)]
fix test suite failure when run with LANG=C

4 years agoAdded a comment: commit 492036622a6326852c29e23608f3959f63e55685 fixes this
jkniiv@b330fc3a602d36a37a67b2a2d99d4bed3bb653cb [Wed, 18 Aug 2021 21:10:51 +0000 (21:10 +0000)]
Added a comment: commit 492036622a6326852c29e23608f3959f63e55685 fixes this

4 years agoAdded a comment
Lukey [Wed, 18 Aug 2021 21:07:12 +0000 (21:07 +0000)]
Added a comment

4 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Wed, 18 Aug 2021 20:35:54 +0000 (16:35 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

4 years agofix OSX build
Joey Hess [Wed, 18 Aug 2021 20:35:26 +0000 (16:35 -0400)]
fix OSX build

4 years ago(no commit message)
yarikoptic [Wed, 18 Aug 2021 20:19:36 +0000 (20:19 +0000)]

4 years agoAdded a comment: So where are the file stored?
git-annex.branchable.com@78dd096e15e9d37643bf695293cae77fec735698 [Wed, 18 Aug 2021 20:19:25 +0000 (20:19 +0000)]
Added a comment: So where are the file stored?

4 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Wed, 18 Aug 2021 19:17:56 +0000 (15:17 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

4 years agoincremental verification for gitlfs and httpalso
Joey Hess [Wed, 18 Aug 2021 19:13:14 +0000 (15:13 -0400)]
incremental verification for gitlfs and httpalso

And that should be all the special remotes supporting it on linux now,
except for in the odd edge case here and there.

Sponsored-by: Dartmouth College's DANDI project
4 years agoincremental verification for S3
Joey Hess [Wed, 18 Aug 2021 19:07:00 +0000 (15:07 -0400)]
incremental verification for S3

Sponsored-by: Dartmouth College's DANDI project
4 years agoincremental verification for web special remote
Joey Hess [Wed, 18 Aug 2021 18:49:01 +0000 (14:49 -0400)]
incremental verification for web special remote

Except when configuration makes curl be used. It did not seem worth
trying to tail the file when curl is downloading.

But when an interrupted download is resumed, it does not read the whole
existing file to hash it. Same reason discussed in
commit 7eb3742e4b76d1d7a487c2c53bf25cda4ee5df43; that could take a long
time with no progress being displayed. And also there's an open http
request, which needs to be consumed; taking a long time to hash the file
might cause it to time out.

Also in passing implemented it for git and external special remotes when
downloading from the web. Several others like S3 are within striking
distance now as well.

Sponsored-by: Dartmouth College's DANDI project
4 years agodistinguish between incremental verification failing and not being done
Joey Hess [Wed, 18 Aug 2021 17:54:40 +0000 (13:54 -0400)]
distinguish between incremental verification failing and not being done

Sponsored-by: Dartmouth College's DANDI project
4 years agorefactor
Joey Hess [Wed, 18 Aug 2021 17:35:53 +0000 (13:35 -0400)]
refactor