Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

datalad siblings enable fails in git-cloned dataset without git-annex branch #7557

Open
adswa opened this issue Feb 6, 2024 · 1 comment

Comments

@adswa
Copy link
Member

adswa commented Feb 6, 2024

If one clones a datalad dataset via a plain git clone, and one's local repo thus only has the master branch, running datalad siblings enable can crash and bubbles up the git error - the underlying reason is that the local repo doesn't yet see the git-annex branch.

(handbook-upgrade) adina@muninn in /tmp/argw on git:master
❱ datalad siblings enable -s osf-storage                                    1 !
CommandError: 'git -c diff.ignoreSubmodules=none -c core.quotepath=false cat-file blob git-annex:remote.log' failed with exitcode 128
fatal: invalid object name 'git-annex'.
(handbook-upgrade) adina@muninn in /tmp/argw on git:master
❱ git branch                                                              128 !
* master
@adswa
Copy link
Member Author

adswa commented Feb 7, 2024

this is a variant of #6569. Git's error message changed from "fatal: path 'remote.log' does not exist in 'git-annex'" to "fatal: invalid object name 'git-annex'".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant