PennLINC / babs

BIDS App Bootstrap (BABS)
https://pennlinc-babs.readthedocs.io
MIT License
5 stars 5 forks source link

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

Open zhao-cy opened 10 months ago

zhao-cy commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

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.