-
-
Notifications
You must be signed in to change notification settings - Fork 934
BF: remove a submodule with a remote without refs + misc fixes around #521
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
BF: remove a submodule with a remote without refs + misc fixes around #521
Conversation
@yarikoptic would it be possible to add a test-case into the PR with the annex command, replicating the situation you just described? |
As it was - many tests were simply not accounted/run at all
originally draft committed by mistake in 31fd955 sorry
ok @ankostis -- but along the way had to fix 2 other bugs... apparently some tests (which used |
|
||
parent.index.commit("Added submodule") | ||
|
||
assert sm.repo is parent # yoh was surprised since expected sm repo!! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and I am not sure why that is the case -- I was expecting submodules repo to be the repo of the submodule ... but I guess it can make sense to refer to parent which contains the submodule, but then is there an attribute for submodules repo (if present)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Byron any comment? I'm not familiar with git-modules.
reincarnating
I am not sure on state of locking/context manager expectations atm and see recent work touching locking... so I will need to leave this to you guys (@ankostis ?) to figure out |
codecov in our (datalad, etc) experience provides a better service, great support, and super-nice intergration with chromium and firefox for reviewing coverage of pull requests. In light of the @with_rw_directory fiasco detected/fixed in gitpython-developers#521 I would strongly recommend to (re-)enable and use coverage reports
codecov in our (datalad, etc) experience provides a better service, great support, and super-nice intergration with chromium and firefox for reviewing coverage of pull requests. In light of the @with_rw_directory fiasco detected/fixed in gitpython-developers#521 I would strongly recommend to (re-)enable and use coverage reports
@yarikoptic so you mean that |
Yes, at least since some time in the past |
If your really want to know, I could check later since when |
Indeed @yarikoptic your 31fd955 fixed an important regression introduced by #519, So, I'm cherry picking your 2528d11 and 31fd955 but modified to include only your |
+ The actual commits have been re-written and rebased previously.
On Travis, PY3.3 failed due to file-handles; increased ulimit 96-->100 solved the problem. |
Forgot to thank you. |
That is OK, if you like to see me there - add, otherwise I am just fine. Cheers. Thanks for attending to my PRs quickly |
now if there is a remote without any refs (this happens e.g. with git-annex repo with special remotes), it would refuse to remove the submodule
(with 2.0.8 it also didn't work but with a different msg "AssertionError: Remote datalad did not have any references")