Closed adswa closed 1 year ago
I have reproduced this on Linux with git-annex version 10.20220504, in the gooey and the command line. I suspect this is something on Gin's end. Pure git commands confirm that the histories of the local and remote git-annex branch are unrelated:
(gooey) adina@muninn in /tmp/machinelearning-books on git:git-annex
❱ git pull gin git-annex
From https://gin.g-node.org/adswa/mlbooksmoretests
* branch git-annex -> FETCH_HEAD
fatal: refusing to merge unrelated histories
The problem persists in a clone of the repository:
(gooey) adina@muninn in /tmp/mlbooksmoretests on git:master
❱ git-annex whereis A.Shashua-Introduction_to_Machine_Learning.pdf 1 !
whereis A.Shashua-Introduction_to_Machine_Learning.pdf (0 copies) failed
whereis: 1 failed
Is git annex merge
able to recover from this situation? I would not expected a standard git pull
to do it. I assume that GIN is (for some reason) running git annex forget
, and git annex merge
should be able to work with the outcome.
If that is the case, we could look into automating this kind of recovery.
I haven't tried but I will. What we discovered is that a git push gin git-annex --force fixes the branch on gins end. Both merge and push wouldn't be possible for someone cloning someone's repo
This issue has nothing to do with datalad-gooey, but is a yet unresolved issue of Gin, that luckily hasn't reoccurred so far. I'm closing this, therefore.
Pushing different datasets (e.g., studyforrest, machinelearning-books) from a Windows machine to Gin failed with a non-fast-forward error of the git-annex branch (see also #346).
Errors look like this:
I have tried this with various access protocols (https-ssh and ssh), private and non-private repos, and with both the
--data auto
,anything
andauto-if-wanted
configuration.The local git annex branch carries a range of commits I haven't seen before, of which @mih says they happen when one intentionally severs the git-annex branch.
The remote git-annex branch, interestingly, has a "Gogs" committer id: https://gin.g-node.org/adswa/ml-books-only-ssh/src/git-annex
My local git-annex version is 10.20220928-g82dab0749. I do not see a similar problem pushing to a freshly created github sibling.