Joey Hess [Fri, 15 Sep 2023 12:10:32 +0000 (08:10 -0400)]
new make dev target
rename old to make prof
Joey Hess [Fri, 15 Sep 2023 11:56:10 +0000 (07:56 -0400)]
silence build warning
about ~
Joey Hess [Fri, 15 Sep 2023 00:29:12 +0000 (20:29 -0400)]
todo
Joey Hess [Thu, 14 Sep 2023 16:38:41 +0000 (12:38 -0400)]
announcement
Joey Hess [Wed, 13 Sep 2023 17:01:19 +0000 (13:01 -0400)]
comment
Joey Hess [Wed, 13 Sep 2023 16:57:24 +0000 (12:57 -0400)]
remove incorrect documentation of annex.skipunknown behavior
git-annex get with no parameters and annex.skipunknown = false
in a directory with no files tracked by git results in the same
failure as with a "." parameter.
It may be that git ls-files --error-unmatch changed behavior? Or this
was just wrong.
Joey Hess [Tue, 12 Sep 2023 16:50:35 +0000 (12:50 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 12 Sep 2023 16:48:49 +0000 (12:48 -0400)]
lookupkey: Added --ref option
Sponsored-by: Joshua Antonishen on Patreon
jstritch [Tue, 12 Sep 2023 16:36:26 +0000 (16:36 +0000)]
Added a comment
anarcat [Tue, 12 Sep 2023 15:51:22 +0000 (15:51 +0000)]
Added a comment: just show start time?
Joey Hess [Mon, 11 Sep 2023 18:54:26 +0000 (14:54 -0400)]
propigateAdjustedCommits in seekExportContent
push: When on an adjusted branch, propagate changes to parent branch before
updating export remotes.
This is a somewhat redundant call to propigateAdjustedCommits, since it
also gets called at pushLocal time. That other one needs to come after
importing from importtree remotes though, and seekExportContent has to come
earlier, so I don't see a way to avoid doing it twice.
Note that git-annex sync also manages to avoid the problem, it's only
git-annex push that had the bug.
Sponsored-by: Leon Schuermann on Patreon
Joey Hess [Mon, 11 Sep 2023 18:21:36 +0000 (14:21 -0400)]
improve warning message when unable to update export
A misleading message was displayed in several cases.
If the user has run eg: git config
remote.push-win-remote.annex-tracking-branch 'adjusted/main(unlocked)'
That is not supported, and now it will tell them it's not a valid
configuration. A user reported doing that, but I don't know if it's a
common point of confusion. If it is a common problem, a better message
would be possible, or it could convert back from the adjusted branch to
the actual branch.
Sponsored-by: Graham Spencer on Patreon
Joey Hess [Mon, 11 Sep 2023 17:19:55 +0000 (13:19 -0400)]
comment (and close)
Joey Hess [Mon, 11 Sep 2023 17:15:56 +0000 (13:15 -0400)]
comment
Joey Hess [Mon, 11 Sep 2023 17:15:37 +0000 (13:15 -0400)]
add link
Joey Hess [Mon, 11 Sep 2023 17:14:38 +0000 (13:14 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 11 Sep 2023 17:13:05 +0000 (13:13 -0400)]
adb send to final filename not tmp file
Avoids some problems with unusual character in exporttree filenames
that confuse adb shell commands.
In particular, with a filename that contains \351, adb push sends the file
to the correct filename in /sdcard. And running find on the android device
roundtrips the filename. But, running mv on that filename on the android
device fails with "bad <filename>: No such file or directory".
Interestingly, ls on android works, and rm fails.
adb push to the final name to avoids this problem. But what about
atomicity? Well, I tried an adb push and interrupted it part way through.
The file was present while the push was running, but was removed once the
push got interrupted. I also tried yanking the cable while adb push was
running, and the partially received file was also deleted then. That avoids
most problems.
An import that runs at the same time as an export will see the partially
sent file. But that is unlikely to be done, and if it did happen, it would
notice that the imported file had changed in the meantime and discard it.
Note that, since rm on the android device fails on these filenames,
exporting a tree where the file is deleted is going to fail to remove it. I
don't see what I can do about that, so long as android is using an rm that
has issues with filename encodings.
This was tested on a phone where find, ls, and rm all come from Toybox 0.8.6.
Sponsored-by: unqueued on Patreon
jstritch [Sun, 10 Sep 2023 15:56:21 +0000 (15:56 +0000)]
jstritch [Sat, 9 Sep 2023 14:49:35 +0000 (14:49 +0000)]
Added a comment: git annex pull is also broken
jstritch [Fri, 8 Sep 2023 15:56:59 +0000 (15:56 +0000)]
matrss [Fri, 8 Sep 2023 15:47:16 +0000 (15:47 +0000)]
Added a comment: get file by branch and path in bare repository
Joey Hess [Thu, 7 Sep 2023 19:07:41 +0000 (15:07 -0400)]
comment
Joey Hess [Thu, 7 Sep 2023 18:56:26 +0000 (14:56 -0400)]
Override safe.bareRepository for git remotes
Fix using git remotes that are bare when git is configured
with safe.bareRepository = explicit
Sponsored-by: Dartmouth College's DANDI project
Joey Hess [Thu, 7 Sep 2023 18:36:16 +0000 (14:36 -0400)]
set safe.directory when getting config for git-annex-shell or git remotes
Fix more breakage caused by git's fix for CVE-2022-24765, this time
involving a remote (either local or ssh) that is a repository not owned by
the current user.
Sponsored-by: Dartmouth College's DANDI project
Joey Hess [Thu, 7 Sep 2023 16:59:20 +0000 (12:59 -0400)]
Fix linker optimisation in linux standalone tarballs
Was only symlinking when there is a usr/ directory, but with usr/ merge,
there are none.
Sponsored-by: Dartmouth College's Datalad project
Joey Hess [Thu, 7 Sep 2023 16:57:38 +0000 (12:57 -0400)]
tag datalad
yarikoptic [Thu, 31 Aug 2023 16:48:34 +0000 (16:48 +0000)]
Added a comment
yarikoptic [Thu, 31 Aug 2023 15:58:52 +0000 (15:58 +0000)]
original report on misleading reasons stated by enableremote for the need of safe.directory case
yarikoptic [Thu, 31 Aug 2023 13:57:21 +0000 (13:57 +0000)]
Added a comment
yarikoptic [Thu, 31 Aug 2023 13:54:20 +0000 (13:54 +0000)]
reporting on increased number of looksup
Added a comment
Joey Hess [Mon, 26 Dec 2022 16:42:45 +0000 (12:42 -0400)]
Removed the vendored git-lfs and the GitLfs build flag
AFAICS all git-annex builds are using the git-lfs library not the vendored
copy.
Debian stable now includes a new enough haskell-git-lfs package as well.
Last time this was tried it did not.
Joey Hess [Mon, 28 Aug 2023 17:04:20 +0000 (13:04 -0400)]
add news item for git-annex 10.
20230828
Joey Hess [Mon, 28 Aug 2023 17:04:06 +0000 (13:04 -0400)]
releasing package git-annex version 10.
20230828
Joey Hess [Mon, 28 Aug 2023 16:57:33 +0000 (12:57 -0400)]
remove man pages from cabal file
Since
393275c10521145bcc6b18cfd39db6854ae0831e Setup.hs no longer
installs the man pages. Since the cabal package is only used to install
git-annex with cabal, it doesn't need to include files like these that
are not used when installing with cabal.
Joey Hess [Mon, 28 Aug 2023 16:52:53 +0000 (12:52 -0400)]
better link to install stack
and a layout fix
Joey Hess [Mon, 28 Aug 2023 16:35:57 +0000 (12:35 -0400)]
remove unused import
Joey Hess [Mon, 28 Aug 2023 16:34:24 +0000 (12:34 -0400)]
remove dead code
Joey Hess [Mon, 28 Aug 2023 16:20:49 +0000 (12:20 -0400)]
comment
Joey Hess [Mon, 28 Aug 2023 16:13:58 +0000 (12:13 -0400)]
wording
derphysiker [Sun, 27 Aug 2023 07:38:44 +0000 (07:38 +0000)]
Joey Hess [Wed, 23 Aug 2023 17:31:31 +0000 (13:31 -0400)]
oldkeys: check associated files by default and add --unchecked
Removed the prior code that checked for keys used by current versions of
the files being acted on. It is redundant with the associated files
check (so long as the associated files database is always up-to-date,
which reconcileStaged should accomplish).
Sponsored-by: Luke T. Shumaker on Patreon
Joey Hess [Tue, 22 Aug 2023 19:10:04 +0000 (15:10 -0400)]
comment (and a new example)
Joey Hess [Tue, 22 Aug 2023 19:01:43 +0000 (15:01 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 22 Aug 2023 19:00:29 +0000 (15:00 -0400)]
oldkeys --revision-range
Sponsored-by: Brett Eisenberg on Patreon
Joey Hess [Tue, 22 Aug 2023 18:51:06 +0000 (14:51 -0400)]
oldkeys: New command that lists the keys used by old versions of a file
The tricky thing about this turned out to be handling renames and reverts.
For that, it has to make two passes over the git log, and to avoid
buffering a possibly huge amount of logs in memory (ie the whole git log of
an entire repository!), runs git log twice.
(It might be possible to speed this up by asking git log to show a diff,
and so avoid needing to use catKey.)
Sponsored-By: Brock Spratlen on Patreon
nobodyinperson [Tue, 22 Aug 2023 17:57:45 +0000 (17:57 +0000)]
Added a comment
nobodyinperson [Tue, 22 Aug 2023 16:48:58 +0000 (16:48 +0000)]
Added a comment: Oh yes please 🤩
Joey Hess [Tue, 22 Aug 2023 16:38:00 +0000 (12:38 -0400)]
comment, todo
Joey Hess [Tue, 22 Aug 2023 16:21:17 +0000 (12:21 -0400)]
comment
Joey Hess [Tue, 22 Aug 2023 16:10:46 +0000 (12:10 -0400)]
comment
Joey Hess [Tue, 22 Aug 2023 15:58:13 +0000 (11:58 -0400)]
diffdriver: Added --get option
Removed the dontCheck repoExists, because running it in a repo that has not
been initialized yet would update location log with nouuid. And I guess
it's ok for it to only support running in git-annex repos.
Joey Hess [Tue, 22 Aug 2023 14:25:53 +0000 (10:25 -0400)]
avoid unncessary use of curl when conduit will do
Avoid using curl when annex.security.allowed-ip-addresses is set but
neither annex.web-options nor annex.security.allowed-url-schemes is set to
a value that needs curl.
Bug introduced in
840bd50390437a91c39fb7da1ba8d5bf07fed457
Sponsored-By: Brock Spratlen on Patreon
Joey Hess [Fri, 18 Aug 2023 17:03:47 +0000 (13:03 -0400)]
fix build on windows
thanks to jkniiv
jkniiv [Thu, 17 Aug 2023 09:53:39 +0000 (09:53 +0000)]
report on a build failure on Windows regarding Utility.Url.Parse
Joey Hess [Wed, 16 Aug 2023 20:03:05 +0000 (16:03 -0400)]
mention that the default is only available remotes
Joey Hess [Wed, 16 Aug 2023 20:02:03 +0000 (16:02 -0400)]
done
Joey Hess [Wed, 16 Aug 2023 19:57:30 +0000 (15:57 -0400)]
convert checkAvailable to use availability rather than localpath
Every remote that sets localpath also implements an availability that
reutrns Unavailable when a local directory is not available.
This makes external remotes, and others that get support for
availability Unavailable to be used by checkAvailable. (Which is only
used by the assistant.)
Had to keep localpath though, since other parts of the assistant use it
to eg, sync with a remote when a removable drive is plugged in.
Sponsored-by: Jack Hill on Patreon
Joey Hess [Wed, 16 Aug 2023 19:54:54 +0000 (15:54 -0400)]
implement Unavilable for gcrypt
Sponsored-by: Brett Eisenberg on Patreon
Joey Hess [Wed, 16 Aug 2023 19:48:09 +0000 (15:48 -0400)]
implement Unavilable for borg bup ddar directory rsync
Only gcrypt remains to add support for. (Well, possibly also adb?)
Sponsored-by: Luke T. Shumaker on Patreon
Joey Hess [Wed, 16 Aug 2023 18:52:51 +0000 (14:52 -0400)]
info: Added available to the info displayed for a remote
Sponsored-by: Kevin Mueller on Patreon
Joey Hess [Wed, 16 Aug 2023 18:31:31 +0000 (14:31 -0400)]
let Remote.availability return Unavilable
This is groundwork for making special remotes like borg be skipped by
sync when on an offline drive.
Added AVAILABILITY UNAVAILABLE reponse and the UNAVAILABLERESPONSE extension
to the external special remote protocol. The extension is needed because
old git-annex, if it sees that response, will display a warning
message. (It does continue as if the remote is globally available, which
is acceptable, and the warning is only displayed at initremote due to
remote.name.annex-availability caching, but still it seemed best to make
this a protocol extension.)
The remote.name.annex-availability git config is no longer used any
more, and is documented as such. It was only used by external special
remotes to cache the availability, to avoid needing to start the
external process every time. Now that availability is queried as an
Annex action, the external is only started by sync (and the assistant),
when they actually check availability.
Sponsored-by: Nicholas Golder-Manning on Patreon
Joey Hess [Wed, 16 Aug 2023 17:19:17 +0000 (13:19 -0400)]
move comment
Joey Hess [Wed, 16 Aug 2023 17:16:49 +0000 (13:16 -0400)]
comment
anarcat [Wed, 16 Aug 2023 14:40:17 +0000 (14:40 +0000)]
Joey Hess [Tue, 15 Aug 2023 18:22:30 +0000 (14:22 -0400)]
update
Last commit also removed curl from linux standalone tarball.
Which may or may not have been a mistake.. I'm inclined to go ahead and
simplify it.
Joey Hess [Tue, 15 Aug 2023 18:21:53 +0000 (14:21 -0400)]
Stop bundling curl in the OSX dmg
New curl binary links to libldap with a @loader_path that prevents using
the binary when the dmg is used elsewhere.
See https://github.com/datalad/git-annex/issues/170
git-annex doesn't use curl by default anyway, so it doesn't really need to
be included in the dmg.
Joey Hess [Tue, 15 Aug 2023 17:21:28 +0000 (13:21 -0400)]
comment
Joey Hess [Tue, 15 Aug 2023 16:57:41 +0000 (12:57 -0400)]
fix empty tree import when directory does not exist
Fix behavior when importing a tree from a directory remote when the
directory does not exist. An empty tree was imported, rather than the
import failing. Merging that tree would delete every file in the
branch, if those files had been exported to the directory before.
The problem was that dirContentsRecursive returned [] when the directory
did not exist. Better for it to throw an exception. But in commit
74f0d67aa3988a71f3a53b88de4344272d924b95 back in 2012, I made it never
theow exceptions, because exceptions throw inside unsafeInterleaveIO become
untrappable when the list is being traversed.
So, changed it to list the contents of the directory before entering
unsafeInterleaveIO. So exceptions are thrown for the directory. But still
not if it's unable to list the contents of a subdirectory. That's less of a
problem, because the subdirectory does exist (or if not, it got removed
after being listed, and it's ok to not include it in the list). A
subdirectory that has permissions that don't allow listing it will have its
contents omitted from the list still.
(Might be better to have it return a type that includes indications of
errors listing contents of subdirectories?)
The rest of the changes are making callers of dirContentsRecursive
use emptyWhenDoesNotExist when they relied on the behavior of it not
throwing an exception when the directory does not exist. Note that
it's possible some callers of dirContentsRecursive that used to ignore
permissions problems listing a directory will now start throwing exceptions
on them.
The fix to the directory special remote consisted of not making its
call in listImportableContentsM use emptyWhenDoesNotExist. So it will
throw an exception as desired.
Sponsored-by: Joshua Antonishen on Patreon
Joey Hess [Tue, 15 Aug 2023 16:43:26 +0000 (12:43 -0400)]
remove unused imports
Joey Hess [Mon, 14 Aug 2023 17:51:35 +0000 (13:51 -0400)]
change sync content transition plan and fine tune warning
Only display warning when git-annex sync (without --content or
--no-content) is used with repositories that have preferred content
configured.
Sponsored-by: Leon Schuermann on Patreon
Joey Hess [Mon, 14 Aug 2023 16:29:53 +0000 (12:29 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 14 Aug 2023 16:28:10 +0000 (12:28 -0400)]
split out Utility.Url.Parse
This is mostly for git-repair which can't include all of Utility.Url
without adding many dependencies that are not really necessary.
aurtzy [Sun, 13 Aug 2023 19:48:46 +0000 (19:48 +0000)]
include system that i forgot in report
aurtzy [Fri, 11 Aug 2023 01:22:30 +0000 (01:22 +0000)]
nobodyinperson [Thu, 10 Aug 2023 01:08:16 +0000 (01:08 +0000)]
Added a comment
anarcat [Thu, 10 Aug 2023 00:37:15 +0000 (00:37 +0000)]
anarcat [Thu, 10 Aug 2023 00:36:56 +0000 (00:36 +0000)]
Joey Hess [Wed, 9 Aug 2023 17:30:43 +0000 (13:30 -0400)]
Add git-annex remote refs that are not newer to the merged refs list
Significant startup speed increase by avoiding repeatedly checking if some
remote git-annex branch refs need to be merged when it is not newer.
One way this could happen is when there are 2 remotes that are themselves
connected. The git-annex branch on the first remote gets updated. Then the
second remote pulls from the first, and merges in its git-annex branch.
Then the local repo pulls from the second remote, and merges its git-annex
branch. At this point, a pull from the first remote will get a git-annex
branch that is not newer, but is not on the merged refs list.
In my big repo, git-annex startup time dropped from 4 seconds to 0.1 seconds.
There were 5 to 10 such remote refs out of 18 remotes.
Sponsored-by: Graham Spencer on Patreon
Joey Hess [Wed, 9 Aug 2023 16:43:56 +0000 (12:43 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Wed, 9 Aug 2023 16:43:48 +0000 (12:43 -0400)]
info: Added --dead-repositories option
I considered a more wide-ranging config option to make other commands
also show dead repositories. But it would be difficult to implement that
because Remote.keyLocations is used to get locations, filtering out dead
repos, and commands like get then try to use those locations. So a config
setting would make dead repos sometimes be acted on by commands.
Sponsored-by: unqueued on Patreon
nobodyinperson [Wed, 9 Aug 2023 05:31:26 +0000 (05:31 +0000)]
Added a comment
Joey Hess [Tue, 8 Aug 2023 17:45:37 +0000 (13:45 -0400)]
closing dup
Joey Hess [Tue, 8 Aug 2023 17:43:04 +0000 (13:43 -0400)]
comment
Joey Hess [Tue, 8 Aug 2023 17:11:07 +0000 (13:11 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 8 Aug 2023 17:11:00 +0000 (13:11 -0400)]
fix link
Joey Hess [Tue, 8 Aug 2023 17:08:56 +0000 (13:08 -0400)]
link
jkniiv [Tue, 8 Aug 2023 16:38:53 +0000 (16:38 +0000)]
Added a comment
Joey Hess [Mon, 7 Aug 2023 17:05:11 +0000 (13:05 -0400)]
Fix behavior of onlyingroup
Sponsored-by: k0ld on Patreon
xvorsx@a3fc1a0cf228782f624e5eb21ba8a664227b6c60 [Mon, 7 Aug 2023 07:20:55 +0000 (07:20 +0000)]
removed
xvorsx@a3fc1a0cf228782f624e5eb21ba8a664227b6c60 [Mon, 7 Aug 2023 07:20:40 +0000 (07:20 +0000)]
removed
xvorsx@a3fc1a0cf228782f624e5eb21ba8a664227b6c60 [Mon, 7 Aug 2023 07:20:25 +0000 (07:20 +0000)]
removed
xvorsx@a3fc1a0cf228782f624e5eb21ba8a664227b6c60 [Mon, 7 Aug 2023 07:19:57 +0000 (07:19 +0000)]
Added a comment
xvorsx@a3fc1a0cf228782f624e5eb21ba8a664227b6c60 [Mon, 7 Aug 2023 07:19:46 +0000 (07:19 +0000)]
Added a comment
xvorsx@a3fc1a0cf228782f624e5eb21ba8a664227b6c60 [Mon, 7 Aug 2023 07:19:35 +0000 (07:19 +0000)]
Added a comment
xvorsx@a3fc1a0cf228782f624e5eb21ba8a664227b6c60 [Mon, 7 Aug 2023 07:19:25 +0000 (07:19 +0000)]
Added a comment
jkniiv [Sat, 5 Aug 2023 11:15:30 +0000 (11:15 +0000)]
report on --onlyingroup only partially working