Commit graph

7 commits

Author SHA1 Message Date
Joey Hess
14584e7a38
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
2022-06-09 13:16:50 -04:00
Joey Hess
ea9e6cf4a6
comment, improve docs 2021-08-24 12:45:13 -04:00
git-annex@6e52e5c5d048aa6b470b95d81fbaf44769d11fbd
21e70142a7 2020-11-21 04:21:26 +00:00
Joey Hess
161b2ef690
clarify 2019-10-04 11:28:01 -04:00
Joey Hess
0a27f77fee
clarify 2019-10-04 11:27:19 -04:00
Joey Hess
bc98edd25d
improve link text 2019-10-04 11:24:53 -04:00
Joey Hess
8df0152633
finally document initremote type=git 2019-10-04 11:22:46 -04:00