Commit graph

12579 commits

Author SHA1 Message Date
Joey Hess
bff089a392
prevent initialization with bad freeze/thaw hook configured
When annex.freezecontent-command or annex.thawcontent-command is configured
but fails, prevent initialization.

This allows the user to fix their configuration and avoid crippled
filesystem detection entering an adjusted unlocked branch unexpectedly,
when they had been relying on the hooks working around their filesystems's
infelicities.

In the case of git-remote-annex, a failure of these hooks is taken to mean
the filesystem may be crippled, so it deletes the bundles objects and
avoids initialization. That might mean extra work, but only in this edge
case where the hook is misconfigured. And it keeps the command working
for cloning even despite the misconfiguration.

Sponsored-by: the NIH-funded NICEMAN (ReproNim TR&D3) project
2025-05-27 12:54:31 -04:00
Joey Hess
adc7a51a9e
comment 2025-05-27 10:15:59 -04:00
yarikoptic
56ac6d5682 Added a comment 2025-05-27 10:57:18 +00:00
NewUser
27a282aeda 2025-05-26 22:22:51 +00:00
pierreay
f2819fb260 Added a comment 2025-05-26 19:38:41 +00:00
Joey Hess
4cf545c553
comment 2025-05-22 15:21:18 -04:00
Joey Hess
1a9e6bf26b
Merge branch 'master' of ssh://git-annex.branchable.com 2025-05-22 14:32:51 -04:00
Joey Hess
18d27920a3
git bug 2025-05-22 14:32:42 -04:00
yarikoptic
e7b6984fdf Added a comment 2025-05-22 18:23:36 +00:00
Joey Hess
fe1fe5eaec
comment 2025-05-22 13:46:18 -04:00
Joey Hess
c2652690d4
comment 2025-05-22 13:04:22 -04:00
Joey Hess
d7a28f21c9
assistant: Avoid startup hang on active *.lock file
Avoid hanging at startup when a process has a *.lock file open in the .git
directory.

The goal is to repair stale locks, not wait for all active locks to be
closed. This was causing problems for a non-git process that has its own
lock file in a subdir of .git/.

If .git/index_lock is a non-stale lock, this does let the assistant start
up regardless. Commits by the assistant will then fail, until the process
locking the index finishes. This is not a problem, because the same
behavior could already happen if the assistant is started and then another
process locks the index.

Sponsored-by: the NIH-funded NICEMAN (ReproNim TR&D3) project
2025-05-22 12:56:58 -04:00
yarikoptic
2f37684791 Added a comment 2025-05-20 15:00:07 +00:00
Joey Hess
f3ae78734f
close 2025-05-20 10:16:34 -04:00
Joey Hess
b19839818a
close 2025-05-20 10:10:14 -04:00
mak
6227314e77 Added a comment: git-annex and starship 2025-05-20 04:06:38 +00:00
jcjgraf
aa880b4585 2025-05-15 06:24:00 +00:00
Joey Hess
0646eabc17
comment 2025-05-14 13:25:24 -04:00
Joey Hess
39ee50d22c
comment 2025-05-14 13:02:53 -04:00
Joey Hess
0ab6772ff9
response 2025-05-14 12:42:20 -04:00
Joey Hess
e166a06323
response 2025-05-13 11:14:28 -04:00
Joey Hess
0ebc1f4666
close 2025-05-13 10:58:56 -04:00
Joey Hess
f14a4bd4cf
comment 2025-05-13 10:09:07 -04:00
jkniiv
55fcfae785 Added a comment 2025-05-12 20:02:48 +00:00
pierreay
0b98d3b019 First post 2025-05-11 09:04:39 +00:00
nobodyinperson
768250272d Added a comment: also noticed some assistant weirdness 2025-05-09 07:45:02 +00:00
Joey Hess
97203e525b
Merge branch 'master' of ssh://git-annex.branchable.com 2025-05-08 15:01:14 -04:00
Joey Hess
de7dae06cf
set fileEncoding in streamLogFileUnsafe
Windows: Fix bug that can cause git status to show annexed files as
modified when built with OsPath.

This may also have caused bugs on non-Windows, with filenames with
non-ascii characters? Unsure.

The OsPath conversion makes this one of the last few places
(hopefully) where a String is read from a Handle. All other fileEncoding
uses have been eliminated before this point by converting to reading
ByteString and using OsPath. Doing that here would be a better fix,
performance wise.

Sponsored-by: Jack Hill
2025-05-08 14:59:42 -04:00
yarikoptic
2b3f462c41 assistant does not assist 2025-05-08 18:14:39 +00:00
yarikoptic
7e5ae5b79a Added a comment 2025-05-08 17:49:56 +00:00
Joey Hess
bda9dec2f5
comment 2025-05-08 12:41:31 -04:00
jkniiv
45b4332495 Added a comment 2025-05-06 22:14:48 +00:00
jkniiv
26407c70c1 removed 2025-05-06 22:05:21 +00:00
jkniiv
462b4d6d34 Added a comment 2025-05-06 22:03:20 +00:00
Joey Hess
791b314c61
comment 2025-05-06 11:15:52 -04:00
jkniiv
a6559c4303 Added a comment 2025-05-06 00:14:04 +00:00
Joey Hess
e64e9d5fae
whereused: Fix bug that could find matches from grafts in remote git-annex branches
git log with --remotes= needs the preceeding --exclude=*/git-annex in order
to not look at git-annex branches of remotes.

Sponsored-by: mycroft
2025-05-05 14:32:25 -04:00
Joey Hess
ba021ca184
comment 2025-05-05 13:41:45 -04:00
beryllium@5bc3c32eb8156390f96e363e4ba38976567425ec
9dc118d201 2025-05-05 09:28:40 +00:00
jkniiv
5f96c472bc report on OsPath code path having a small regression (on Windows at least) 2025-04-29 14:13:31 +00:00
Joey Hess
fd493804c0
map: Avoid looping forever with mutually recursive paths between repositories accessed via ssh
Slightly unsatisfying to fix this in Git.Construct.localToUrl rather than
in Command.Map.absRepo, which is what map relies on to make repos always
use the same path form. But it was already constructing the url with the
path there, so that was the easiest place to add normalization.

Sponsored-by: Dartmouth College's OpenNeuro project
2025-04-22 15:50:30 -04:00
Joey Hess
87c6110a82
reproduced loop 2025-04-22 15:34:38 -04:00
Joey Hess
26da11aaed
comment 2025-04-21 12:57:36 -04:00
Joey Hess
d55ccf3108
comment 2025-04-21 11:55:21 -04:00
puck
830c0390a5 Added a comment: Better error message 2025-04-20 01:52:45 +00:00
Joey Hess
ff520b06ac
Support git remotes that use a IPV6 link-local address with a zone ID
Fixed 3 problems, and it seems to work now for both forms:

ssh://[fe80::7697:xxx:xxxx:xxxx%wlp3s0]/foo
fe80::7697:xxx:xxxx:xxxx%wlp3s0:foo
2025-04-02 15:11:54 -04:00
Joey Hess
7fb413189a
migrate: Fix --remove-size to work when a file is not present
5f74a45861 added this bug
2025-04-01 10:47:31 -04:00
Joey Hess
932fac7772
response 2025-04-01 09:36:09 -04:00
yarikoptic
fa9188682e migrate --remove-size does not work 2025-03-28 12:13:46 +00:00
yarikoptic
8080385b4c issue about annexing while under git-annex branch 2025-03-28 11:26:31 +00:00