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

[FIX] git commit --amenderror when babs-init: need to add --allow-empty? #156

Open
zhao-cy opened this issue Nov 15, 2023 · 2 comments
Open

Comments

@zhao-cy
Copy link
Collaborator

zhao-cy commented Nov 15, 2023

Shreya from Alexander-Bloch lab ran babs-init without issue following the example walkthrough, but got error when using the datalad dataset created by her. We've made sure she used datalad create -c text2git and datalad save the changes, so the this input datalad dataset should be fine.

Error message:
Screenshot 2023-11-15 at 3 15 47 PM

If we go to analysis folder, and run git commit -amend -m "Register input data dataset xxxx" --allow-empty, then it's fine and changes are saved. Before running this, datalad status says modified: xxxx.

Try adding --allow-empty and see if this can resolve the problem.

@zhao-cy
Copy link
Collaborator Author

zhao-cy commented Nov 15, 2023

Version she is using:

python : 3.9.16
datalad : 0.19.3
git : 2.40.1
git-annex : 10.20230408-g5b1e8ba77
datalad containers-add : 1.2.3
babs : 0.0.6

@zhao-cy zhao-cy linked a pull request Nov 15, 2023 that will close this issue
@zhao-cy
Copy link
Collaborator Author

zhao-cy commented Nov 17, 2023

It seems this error only happens on their cluster's fileshare directory, but not in Shreya's home directory on the cluster. We are investigating more here.

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

Successfully merging a pull request may close this issue.

1 participant