neuropoly / data-management

Repo that deals with datalad aspects for internal use
4 stars 0 forks source link

`git-annex` in a separate branch #67

Open kousu opened 3 years ago

kousu commented 3 years ago
kousu commented 3 years ago

Maybe we should have everyone

git config --global remote.origin.annex-speculate-present true
git config --global remote.amazon.annex-speculate-present true
git config --global annex.alwayscommit false # don't write to `git-annex`

That should reduce our need for the git-annex branch.

We do need it when we add new remotes. But that's pretty rare, that only happens with our public datasets and we (well, probably, I) can make sure to handle uploading git-annex in that case.

In fact, if we also avoid git annex sync, we'll never change the git-annex branch at all, I think.

kousu commented 2 years ago

Bitten by this today in https://github.com/spine-generic/data-multi-subject/issues/108, where a friend tried to work with a Github Fork, which does not sync the git-annex branch the way git annex thinks it should.

In this case, they weren't trying to contribute, they just wanted to download. But they'd forked a while ago, and so their git-annex branch was out of date, causing failures.