Fix bug in git-annex copy --from --to

Caused it to skip files that were locally present.

Sponsored-by: Dartmouth College's DANDI project
This commit is contained in:
Joey Hess 2023-11-17 16:30:20 -04:00
parent f2f6dbe46b
commit 7a8393ce7d
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 12 additions and 1 deletions

View file

@ -17,6 +17,8 @@ git-annex (10.20230927) UNRELEASED; urgency=medium
display how the size of repositories changed over time.
* log: Added options --interval, --bytes, --received, and --gnuplot
to tune the output of the above added options.
* Fix bug in git-annex copy --from --to that skipped files that were
locally present.
-- Joey Hess <id@joeyh.name> Tue, 10 Oct 2023 13:17:31 -0400

View file

@ -68,7 +68,7 @@ seek' o fto = startConcurrency (Command.Move.stages fto) $ do
FromOrToRemote (FromRemote _) -> Just False
FromOrToRemote (ToRemote _) -> Just True
ToHere -> Just False
FromRemoteToRemote _ _ -> Just False
FromRemoteToRemote _ _ -> Nothing
, usesLocationLog = True
}
keyaction = Command.Move.startKey fto Command.Move.RemoveNever

View file

@ -0,0 +1,9 @@
[[!comment format=mdwn
username="joey"
subject="""comment 2"""
date="2023-11-17T20:27:37Z"
content="""
> So the file content being present locally prevents it sending it to the remote!
Fixed that.
"""]]