Commit graph

45987 commits

Author SHA1 Message Date
matrss
71a4b51de6 2024-12-08 17:28:48 +00:00
matrss
01386a982b Added a comment 2024-12-08 17:27:59 +00:00
matrss
b6fc7ded82 2024-12-08 17:20:50 +00:00
Joey Hess
9c1ab28112
close 2024-12-04 13:44:48 -04:00
Joey Hess
384ae5a95a
Merge branch 'master' of ssh://git-annex.branchable.com 2024-12-04 13:44:19 -04:00
Joey Hess
79a160b760
comments 2024-12-03 16:33:03 -04:00
yarikoptic
78bff9bcab Added a comment 2024-12-03 20:26:10 +00:00
Joey Hess
501b5b09f6
Merge branch 'master' of ssh://git-annex.branchable.com 2024-12-03 14:39:30 -04:00
Joey Hess
dd052dcba1
annexInsteadOf config
Added config `url.<base>.annexInsteadOf` corresponding to git's
`url.<base>.pushInsteadOf`, to configure the urls to use for accessing the
git-annex repositories on a server without needing to configure
remote.name.annexUrl in each repository.

While one use case for this would be rewriting urls to use annex+http,
I decided not to add any kind of special case for that. So while
git-annex p2phttp, when serving multiple repositories, needs an url
of eg "annex+http://example.com/git-annex/ for each of them, rewriting an
url like "https://example.com/git/foo/bar" with this config set to
"https://example.com/git/" will result in eg
"annex+http://example.com/git-annex/foo/bar", which p2phttp does not
support.

That seems better dealt with in either git-annex p2phttp or a http
middleware, rather than complicating the config with a special case for
annex+http.

Anyway, there are other use cases for this that don't involve annex+http.
2024-12-03 14:39:07 -04:00
Joey Hess
0404968d10
comments 2024-12-03 13:00:14 -04:00
iirekm
c206d1fb73 Added a comment 2024-12-03 15:43:25 +00:00
Joey Hess
35b7fa3d34
comment 2024-12-03 11:34:49 -04:00
iirekm
ad3cb1dbff 2024-12-03 15:28:22 +00:00
david@1439a1cab13195a56248b6a8fd98a62028bcba8a
b073cae4fc Added a comment: Maybe explanation 2024-12-02 20:25:34 +00:00
Joey Hess
6db95700a6
comment 2024-12-02 14:07:43 -04:00
Joey Hess
f4b2606ff1
comment typo 2024-12-02 14:05:15 -04:00
Joey Hess
0c08ff3d2c
deal with git's CFLR nonsense once again
Work around git hash-object --stdin-paths's odd stripping of carriage
return from the end of the line (some windows infection), avoiding crashing
when the repo contains a filename ending in a carriage return.
2024-12-02 13:47:51 -04:00
Joey Hess
971d9f8057
add news item for git-annex 10.20241202 2024-12-02 12:36:44 -04:00
Joey Hess
430f6bc9c7
releasing package git-annex version 10.20241202 2024-12-02 12:36:24 -04:00
Joey Hess
5882fc28d7
forgot to add this comment earlier 2024-12-02 12:34:08 -04:00
zoran.bosnjak@683708e9d46ca9d9fa8957bd513e6648cbcbf421
72e512329f 2024-12-01 10:37:17 +00:00
psxvoid
7502105629 Added a comment: thanks and the followup 2024-11-27 09:08:32 +00:00
ljc
da2d74a18a 2024-11-27 07:31:13 +00:00
Joey Hess
aa2d543930
comment 2024-11-25 12:32:09 -04:00
Joey Hess
2917caaba3
Merge branch 'master' of ssh://git-annex.branchable.com 2024-11-25 12:16:32 -04:00
Joey Hess
8663c72f1e
git-remote-annex: Fix buggy behavior when annex.stalldetection is configured
Make programPath never return "git-remote-annex" or other known multi-call
program names, which are not git-annex and won't behave like it.
If the git-annex binary gets installed under some entirely other name,
it will still return it.

This change exposed that readProgramFile actually could crash,
which happened before only if getExecutablePath was not absolute
and there was no ~/.config/git-annex/program. So fixed that to catch
exception.
2024-11-25 12:14:52 -04:00
Joey Hess
2fc76ef062
comment 2024-11-25 11:33:38 -04:00
Joey Hess
12cb5f4d4f
analysis 2024-11-25 11:31:20 -04:00
aaron
372852875f Added a comment: Overriding git folder 2024-11-25 02:55:25 +00:00
kyle
6514040b0a Added a comment: re: How to get a list of all NOT unused files 2024-11-25 02:23:25 +00:00
aaron
edacdcc30d 2024-11-25 01:07:20 +00:00
aaron
0e04031208 2024-11-25 01:06:54 +00:00
aaron
9a96925e29 2024-11-25 01:05:32 +00:00
aaron
f429361831 2024-11-25 01:02:53 +00:00
aaron
9934d210ea 2024-11-25 00:56:41 +00:00
aaron
59c555584d 2024-11-25 00:56:17 +00:00
aaron
5f1aa51272 2024-11-25 00:55:07 +00:00
Joey Hess
a2e6d99deb
show remote name when failing
to help debug strange git behavior on some daily builds
2024-11-21 15:55:32 -04:00
Joey Hess
46ea041eba
more fixing for building without servant 2024-11-21 15:35:06 -04:00
Joey Hess
204c19583c
more fixing for building without servant 2024-11-21 15:34:07 -04:00
Joey Hess
f5e1a7f4e4
comment 2024-11-21 15:21:08 -04:00
Joey Hess
757f93203a
Merge branch 'p2phttp-multi' 2024-11-21 15:16:06 -04:00
Joey Hess
4c785c338a
p2phttp: notice when new repositories are added to --directory
When a uuid is not known, rescan for new repositories. Easy.

When a repository is removed, it will also get removed from the server
state on the next scan. But until a new uuid is seen, there will not be
a scan. This leaves the server trying to serve a uuid whose repository
is gone. That seems buggy. While getting just fails, dropping fails the
first time, but seems to leave the server in an unusable state, so the
next drop attempt hangs. The server is still able to serve other uuids,
only the one whose repository was removed has that problem.
2024-11-21 15:09:12 -04:00
Joey Hess
758ea89c74
skip over repositories in --directory that do not have annex.uuid set 2024-11-21 14:18:18 -04:00
Joey Hess
3c18398d5a
p2phttp support --jobs with --directory
--jobs is usually an Annex option setter, but --directory runs in IO, so
would not have that available. So instead moved the option parser into
the command's Options.
2024-11-21 14:15:14 -04:00
Joey Hess
9f84dd82da
p2phttp --directory implementation
Untested, but it compiles, so.

Known problems:

* --jobs is not available to startIO
* Does not notice when new repositories are added to a directory.
* Does not notice when repositories are removed from a directory.
2024-11-21 14:02:58 -04:00
Joey Hess
6bdf4a85fb
move the p2phttp server state map into a data type 2024-11-21 12:24:14 -04:00
Joey Hess
475823c2d3
fix to build w/o servant 2024-11-20 16:29:43 -04:00
Joey Hess
0083ccc677
fix windows build 2024-11-20 15:19:23 -04:00
Joey Hess
6f49f17f22
in test suite display error from git push that fails to exit nonzero 2024-11-20 15:12:23 -04:00