The wrapper script installed into /usr/local/bin/git-annex uses $* instead of "$@". Because of this it splits arguments that shouldn't be split braking among other things all operations on filenames with spaces in them e.g. `git annex get foo\ bar.txt`.
A commit references this bug: Author: arrowd Date: Thu Jun 20 16:03:17 UTC 2019 New revision: 504637 URL: https://svnweb.freebsd.org/changeset/ports/504637 Log: In wrapper scripts, use $@ instead of $* to correctly pass arguments to the real program PR: 238719 Approved by: tcberner (mentor, implicit) Changes: head/Mk/Uses/cabal.mk head/converters/hs-aeson-pretty/Makefile head/devel/hs-ShellCheck/Makefile head/devel/hs-alex/Makefile head/devel/hs-bytestring-nums/Makefile head/devel/hs-c2hs/Makefile head/devel/hs-cabal-install/Makefile head/devel/hs-cpphs/Makefile head/devel/hs-darcs/Makefile head/devel/hs-ghc-events/Makefile head/devel/hs-git-annex/Makefile head/devel/hs-haddock/Makefile head/devel/hs-happy/Makefile head/devel/hs-hasktags/Makefile head/devel/hs-hlint/Makefile head/devel/hs-hoogle/Makefile head/devel/hs-hspec-discover/Makefile head/devel/hs-mueval/Makefile head/devel/hs-shake/Makefile head/devel/hs-threadscope/Makefile head/devel/stack/Makefile head/games/hedgewars-server/Makefile head/games/hs-scroll/Makefile head/lang/hs-brainfuck/Makefile head/lang/hs-unlambda/Makefile head/print/hs-hscolour/Makefile head/textproc/cgrep/Makefile head/textproc/hs-lhs2tex/Makefile head/textproc/hs-pandoc/Makefile head/textproc/hs-pandoc-citeproc/Makefile head/textproc/hs-yaml/Makefile head/www/hs-DAV/Makefile head/www/hs-hjsmin/Makefile head/www/hs-wai-app-static/Makefile head/www/hs-yesod-bin/Makefile head/x11/hs-xmobar/Makefile
Thanks for pointing this out. Should be fixed now.