neuropoly / gitea

https://gitea.io fork with https://git-annex.branchable.com support
https://gitea.io
MIT License
3 stars 2 forks source link

annex: Test git-annex push-to-create #14

Open kousu opened 2 years ago

kousu commented 2 years ago

Push-to-create, when you say git push and the server initializes a remote repo, is glitchy with git-annex under gitolite -- git-annex gets confused about whether the repo really exists or not. Using git annex sync twice usually fixes it.

It would be good to add a test to cover this for Gitea too. Maybe gitea will be less confusing to git-annex?

kousu commented 2 years ago

I just tested this manually, which is encouraging! Though there I did

git remote add origin gitea@data.dev.neuropoly.org:user/repo.git
git push -u origin master
git annex sync
git annex copy --to origin

A harder test would be to just:

git remote add origin gitea@data.dev.neuropoly.org:user/repo.git
git annex sync --content

and that's something we should put in the integration tests.