Joey Hess [Wed, 29 Jun 2022 18:38:16 +0000 (14:38 -0400)]
close
Joey Hess [Wed, 29 Jun 2022 18:37:02 +0000 (14:37 -0400)]
close
Joey Hess [Wed, 29 Jun 2022 18:33:35 +0000 (14:33 -0400)]
include filename in fsck warning
So it's available in --quiet mode. The same was already done in other
fsck warnings.
Sponsored-by: Noam Kremen on Patreon
Joey Hess [Wed, 29 Jun 2022 18:30:57 +0000 (14:30 -0400)]
this is fixed
Joey Hess [Wed, 29 Jun 2022 18:29:00 +0000 (14:29 -0400)]
close
Joey Hess [Wed, 29 Jun 2022 18:27:44 +0000 (14:27 -0400)]
close
Joey Hess [Wed, 29 Jun 2022 18:20:56 +0000 (14:20 -0400)]
re-enable assistand and webapp in stack.yaml
Did not intend for
02ef3d6a643a13e156a305cdc0eaf22155b152cf to
disable them.
Joey Hess [Wed, 29 Jun 2022 18:19:56 +0000 (14:19 -0400)]
fix for removal of webdav build flag
Joey Hess [Wed, 29 Jun 2022 18:11:20 +0000 (14:11 -0400)]
fix build with assistant disabled and webapp enabled
The webapp modules cannot build with the assistant disabled, so make the
webapp be under the assistant build flag.
Sponsored-by: Jarkko Kniivilä on Patreon
Joey Hess [Wed, 29 Jun 2022 17:45:33 +0000 (13:45 -0400)]
close
Joey Hess [Wed, 29 Jun 2022 17:38:46 +0000 (13:38 -0400)]
close
Joey Hess [Wed, 29 Jun 2022 17:28:08 +0000 (13:28 -0400)]
remove --backend from global options
--backend is no longer a global option, and is only accepted by commands
that actually need it.
Three commands that used to support backend but don't any longer are
watch, webapp, and assistant. It would be possible to make them support it,
but I doubt anyone used the option with these. And in the case of webapp
and assistant, the option was handled inconsistently, only taking affect
when the command is run with an existing git-annex repo, not when it
creates a new one.
Also, renamed GlobalOption etc to AnnexOption. Because there are many
options of this type that are not actually global (any more) and get
added to commands that need them.
Sponsored-by: Kevin Mueller on Patreon
Joey Hess [Wed, 29 Jun 2022 16:51:01 +0000 (12:51 -0400)]
update
Joey Hess [Wed, 29 Jun 2022 16:43:30 +0000 (12:43 -0400)]
close
Joey Hess [Wed, 29 Jun 2022 16:40:12 +0000 (12:40 -0400)]
fix parallel copy from/to a local git repo
Improve handling of parallelization with -J when copying content from/to a
git remote that is a local path.
Sponsored-by: Nicholas Golder-Manning on Patreon
Joey Hess [Wed, 29 Jun 2022 16:26:36 +0000 (12:26 -0400)]
close mistaken bug report
Joey Hess [Wed, 29 Jun 2022 16:24:25 +0000 (12:24 -0400)]
wontfix
Joey Hess [Wed, 29 Jun 2022 16:19:08 +0000 (12:19 -0400)]
retitle
Joey Hess [Wed, 29 Jun 2022 16:18:28 +0000 (12:18 -0400)]
fix my comment format
Joey Hess [Wed, 29 Jun 2022 16:17:42 +0000 (12:17 -0400)]
comment
Joey Hess [Tue, 28 Jun 2022 20:02:01 +0000 (16:02 -0400)]
final readonly values moves to AnnexRead
At this point I've checked all AnnexState values and these were all that
remained that could move.
Pity that Annex.repo can't move, but it gets modified sometimes..
A couple of AnnexState values are set by options and could be AnnexRead,
but happen to use Annex when being set.
Sponsored-by: Max Thoursie on Patreon
Joey Hess [Tue, 28 Jun 2022 19:41:25 +0000 (15:41 -0400)]
remove dead code
flags no longer used anywhere
Joey Hess [Tue, 28 Jun 2022 19:40:27 +0000 (15:40 -0400)]
remove redundant pattern match
brilliant spot by new ghc
Joey Hess [Tue, 28 Jun 2022 19:28:14 +0000 (15:28 -0400)]
move several readonly values to AnnexRead
This improves performance to a small extent in several places.
Sponsored-by: Tobias Ammann on Patreon
Joey Hess [Tue, 28 Jun 2022 19:17:41 +0000 (15:17 -0400)]
avoid needing StarIsType extension
Got a deprecation warning suggesting this change. Data.Kind
is available since base-4.9.0.0 and git-annex depends on a newer base.
Joey Hess [Tue, 28 Jun 2022 19:12:32 +0000 (15:12 -0400)]
remove redundant patern match
Joey Hess [Tue, 28 Jun 2022 18:49:33 +0000 (14:49 -0400)]
lts-19.13 (ghc 9.0.2)
Joey Hess [Tue, 28 Jun 2022 17:04:41 +0000 (13:04 -0400)]
comment
Joey Hess [Tue, 28 Jun 2022 16:58:00 +0000 (12:58 -0400)]
close
Joey Hess [Tue, 28 Jun 2022 16:35:08 +0000 (12:35 -0400)]
comment and retitle
Joey Hess [Tue, 28 Jun 2022 16:28:57 +0000 (12:28 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 28 Jun 2022 16:27:48 +0000 (12:27 -0400)]
comment
Joey Hess [Tue, 28 Jun 2022 16:22:32 +0000 (12:22 -0400)]
comments
contr-error [Tue, 28 Jun 2022 10:03:57 +0000 (10:03 +0000)]
add bug
Soxofaan [Sun, 26 Jun 2022 21:53:39 +0000 (21:53 +0000)]
Added a comment: Same problem
Atemu [Sat, 25 Jun 2022 16:36:38 +0000 (16:36 +0000)]
Added a comment: Still useful
Atemu [Sat, 25 Jun 2022 16:20:39 +0000 (16:20 +0000)]
Joey Hess [Thu, 23 Jun 2022 17:59:52 +0000 (13:59 -0400)]
add news item for git-annex 10.
20220624
Joey Hess [Thu, 23 Jun 2022 17:58:42 +0000 (13:58 -0400)]
remove
Joey Hess [Thu, 23 Jun 2022 17:55:54 +0000 (13:55 -0400)]
The 23 never happened release.
It's 24 somewhere..
Joey Hess [Thu, 23 Jun 2022 17:54:34 +0000 (13:54 -0400)]
fix typo
Recent commit got amended accidentially to include this typo. Argh. It
was fine, then I tweakd the commit message and accidentially staged this
breakage.
Joey Hess [Thu, 23 Jun 2022 17:36:06 +0000 (13:36 -0400)]
add news item for git-annex 10.
20220623
Joey Hess [Thu, 23 Jun 2022 17:35:14 +0000 (13:35 -0400)]
fix release version
Joey Hess [Thu, 23 Jun 2022 17:31:50 +0000 (13:31 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Thu, 23 Jun 2022 17:31:44 +0000 (13:31 -0400)]
add news item for git-annex 10.
20220526
Joey Hess [Thu, 23 Jun 2022 17:31:36 +0000 (13:31 -0400)]
releasing package git-annex version 10.
20220526
Joey Hess [Thu, 23 Jun 2022 16:51:50 +0000 (12:51 -0400)]
add rent optimisation inhibitor
As outlined in my blog post, I object to Microsoft training their Copilot
model on my code, and believe it likely violates my copyright.
https://joeyh.name/blog/entry/a_bitter_pill_for_Microsoft_Copilot/
While I never push git-annex to Github, other users choose to. And since
Microsoft is now selling access to Copilot to anyone, this situation is
escalating.
Joey Hess [Thu, 23 Jun 2022 16:51:50 +0000 (12:51 -0400)]
add rent optimisation inhibitor
As outlined in my blog post, I object to Microsoft training their Copilot
model on my code, and believe it likely violates my copyright.
https://joeyh.name/blog/entry/a_bitter_pill_for_Microsoft_Copilot/
While I never push git-annex to Github, other users choose to. And since
Microsoft is now selling access to Copilot to anyone, this situation is
escalating.
Joey Hess [Thu, 23 Jun 2022 16:35:26 +0000 (12:35 -0400)]
remove vendored library no longer used
http-manager-restricted is used for a while, but I forgot to delete this
file when making that change.
Joey Hess [Wed, 22 Jun 2022 20:47:34 +0000 (16:47 -0400)]
use RawFilePath version of rename
Some small wins, almost certianly swamped by the system calls, but still
worthwhile progress on the RawFilePath conversion.
Sponsored-by: Erik Bjäreholt on Patreon
Joey Hess [Wed, 22 Jun 2022 20:20:08 +0000 (16:20 -0400)]
RawFilePath optimisations
Joey Hess [Wed, 22 Jun 2022 20:11:03 +0000 (16:11 -0400)]
RawFilePath optimisation
Joey Hess [Wed, 22 Jun 2022 20:08:49 +0000 (16:08 -0400)]
remove objectDir'
Joey Hess [Wed, 22 Jun 2022 20:08:26 +0000 (16:08 -0400)]
RawFilePath optimisation
Joey Hess [Wed, 22 Jun 2022 18:23:46 +0000 (14:23 -0400)]
convert bug to todo
Joey Hess [Wed, 22 Jun 2022 17:54:57 +0000 (13:54 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Wed, 22 Jun 2022 17:40:14 +0000 (13:40 -0400)]
use replaceWorkTreeFile when fixing an annex symlink
This does not change any behavior, but it's useful for all worktree
changes to be made using this.
Sponsored-by: Graham Spencer on Patreon
Joey Hess [Wed, 22 Jun 2022 17:19:35 +0000 (13:19 -0400)]
followup
Atemu [Wed, 22 Jun 2022 12:34:45 +0000 (12:34 +0000)]
Added a comment
Atemu [Wed, 22 Jun 2022 12:24:22 +0000 (12:24 +0000)]
Added a comment
Ryan [Tue, 21 Jun 2022 18:28:09 +0000 (18:28 +0000)]
arshitha [Fri, 17 Jun 2022 11:13:27 +0000 (11:13 +0000)]
removed
arshitha [Fri, 17 Jun 2022 09:44:28 +0000 (09:44 +0000)]
Added a comment
Joey Hess [Wed, 15 Jun 2022 18:00:56 +0000 (14:00 -0400)]
decided this is not a problem
Joey Hess [Tue, 14 Jun 2022 20:38:34 +0000 (16:38 -0400)]
fix overwrite race with small file that got large
When adding a small file, it does not get locked down, so can be modified
after git-annex checks that it's small. The use of queued git add made the
race window nice and wide too.
Fixed by checking if the file has changed, and by not using git add.
Instead, have to recapitulate git add's handling of things like symlinks
and executable files.
Sponsored-by: Jochen Bartl on Patreon
Joey Hess [Tue, 14 Jun 2022 18:56:16 +0000 (14:56 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
yarikoptic [Tue, 14 Jun 2022 18:47:25 +0000 (18:47 +0000)]
Added a comment: hold it... ;)
Joey Hess [Tue, 14 Jun 2022 18:40:55 +0000 (14:40 -0400)]
get rid of racy addLink
The remaining callers all did not rely on it checking gitignore, so were
easy to convert.
They were susceptable to the same overwrite race as add and fix,
although less likely to have it and a narrower window than add's race.
Command.Rekey in passing got an unncessary call to removeFile deleted.
addSymlink handles deleting any existing worktree file.
Joey Hess [Tue, 14 Jun 2022 18:30:12 +0000 (14:30 -0400)]
avoid writing same symlink twice in a row
Oddly, the second write did not cause it to lose the mtime inherited
from the file being added, although the mtime was not provided to that
write but only to the first. I don't quite know why that worked before!
Joey Hess [Tue, 14 Jun 2022 18:19:58 +0000 (14:19 -0400)]
fixed overwrite race with git-annex fix
Similar to git-annex add, git-annex fix queued git add, so if a file
got modified before git add ran, the wrong content would be staged,
perhaps a large file content.
Sponsored-by: Brock Spratlen on Patreon
Joey Hess [Tue, 14 Jun 2022 18:13:48 +0000 (14:13 -0400)]
bug report
Joey Hess [Tue, 14 Jun 2022 17:56:17 +0000 (13:56 -0400)]
fix overwrite race with git-annex add of annex symlink
In the unlikely case where git-annex add is run on an annex symlink that
is not already added, and while it's processing it, the annex symlink is
overwritten with something else, avoid git-annex overwriting that with
the symlink again.
Sponsored-by: Jack Hill on Patreon
Joey Hess [Tue, 14 Jun 2022 17:20:42 +0000 (13:20 -0400)]
fix add overwrite race with git-annex add to annex
This is not a complete fix for all such races, only the one where a
large file gets changed while adding and gets added to git rather than
to the annex.
addLink needs to go away, any caller of it is probably subject to the
same kind of race. (Also, addLink itself fails to check gitignore when
symlinks are not supported.)
ingestAdd no longer checks gitignore. (It didn't check it consistently
before either, since there were cases where it did not run git add!)
When git-annex import calls it, it's already checked gitignore itself
earlier. When git-annex add calls it, it's usually on files found
by withFilesNotInGit, which handles checking ignores.
There was one other case, when git-annex add --batch calls it. In that
case, old git-annex behaved rather badly, it would seem to add the file,
but git add would later fail, leaving the file as an unstaged annex symlink.
That behavior has also been fixed.
Sponsored-by: Brett Eisenberg on Patreon
Joey Hess [Tue, 14 Jun 2022 16:51:04 +0000 (12:51 -0400)]
bug report
Sponsored-by: Luke Shumaker on Patreon
Joey Hess [Tue, 14 Jun 2022 16:23:33 +0000 (12:23 -0400)]
comment
Joey Hess [Tue, 14 Jun 2022 15:51:44 +0000 (11:51 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
KachoOji [Tue, 14 Jun 2022 15:32:48 +0000 (15:32 +0000)]
Added a comment
yarikoptic [Mon, 13 Jun 2022 23:52:48 +0000 (23:52 +0000)]
Added a comment
yarikoptic [Mon, 13 Jun 2022 23:40:30 +0000 (23:40 +0000)]
initial whining about type=git initremote stopped
Joey Hess [Mon, 13 Jun 2022 20:04:12 +0000 (16:04 -0400)]
add rf
Joey Hess [Mon, 13 Jun 2022 18:20:54 +0000 (14:20 -0400)]
comment
Joey Hess [Mon, 13 Jun 2022 17:38:36 +0000 (13:38 -0400)]
comment
Joey Hess [Mon, 13 Jun 2022 17:12:18 +0000 (13:12 -0400)]
add todo based on forum post
Atemu [Sat, 11 Jun 2022 14:58:11 +0000 (14:58 +0000)]
KachoOji [Fri, 10 Jun 2022 23:04:09 +0000 (23:04 +0000)]
yarikoptic [Thu, 9 Jun 2022 21:53:05 +0000 (21:53 +0000)]
Added a comment
Joey Hess [Thu, 9 Jun 2022 19:26:25 +0000 (15:26 -0400)]
avoid cleaning up move log when drop from remote fails
move: Improve resuming a move that succeeded in transferring the content,
but where dropping failed due to eg a network problem, in cases where
numcopies checks prevented the resumed move from dropping the object from
the source repository.
This was earlier done for moves that got interrupted during the drop stage.
Sponsored-by: Svenne Krap on Patreon
Joey Hess [Thu, 9 Jun 2022 18:24:56 +0000 (14:24 -0400)]
fix to use 1 chunk for empty file
Fix retrival of an empty file that is stored in a special remote with
chunking enabled.
The speculative chunk stuff caused a reversion by adding an empty list for
the empty file. Which is just wrong; the empty file is still stored on the
remote, and should be retrieved like any other file. It uses 1 chunk, so
`max 1` is the simple fix.
Sponsored-by: Noam Kremen on Patreon
Joey Hess [Thu, 9 Jun 2022 17:40:05 +0000 (13:40 -0400)]
fix typo
Joey Hess [Thu, 9 Jun 2022 17:38:37 +0000 (13:38 -0400)]
comment
Joey Hess [Thu, 9 Jun 2022 17:32:07 +0000 (13:32 -0400)]
comment
Joey Hess [Thu, 9 Jun 2022 17:23:33 +0000 (13:23 -0400)]
close as not a bug
Joey Hess [Thu, 9 Jun 2022 17:18:10 +0000 (13:18 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
yarikoptic [Thu, 9 Jun 2022 17:17:56 +0000 (17:17 +0000)]
initial report on difficulty with 0 length file
Joey Hess [Thu, 9 Jun 2022 17:16:50 +0000 (13:16 -0400)]
initremote type=git probe uuid
rather than matching path of an existing remote to find the uuid.
The main benefit of this is that locations not using ssh:// will work
now, including both paths and host:/path
The other benefit is that it's a simpler interface, no need to have an
existing remote with the same url and some other name. Although that
will still work of course.
This does rely on tryGitConfigRead working when given a Git.Repo that is
not a remote. Luckily, it works fine that way.
Also, tryGitConfigRead will auto-init a local repo that has a git-annex
branch. I did not enable auto-init of ssh repos though.
The uuid discovery actually happens twice; initremote discovers it,
and uses it to store the special remote config, but does not set it in the
git remote it creates. So the next run of git-annex does uuid discovery
again, and caches it that time. This could be improved for a tiny
speedup, but I didn't want to complicate things for that in this
commit.
Sponsored-by: Dartmouth College's DANDI project
Joey Hess [Thu, 9 Jun 2022 17:16:39 +0000 (13:16 -0400)]
bug report
mih [Thu, 9 Jun 2022 11:43:47 +0000 (11:43 +0000)]
jkniiv [Thu, 9 Jun 2022 02:32:19 +0000 (02:32 +0000)]
Added a comment
Joey Hess [Wed, 8 Jun 2022 19:44:28 +0000 (15:44 -0400)]
analysis
Joey Hess [Wed, 8 Jun 2022 16:54:28 +0000 (12:54 -0400)]
comment