BF: remove a submodule with a remote without refs + misc fixes around by yarikoptic · Pull Request #521 · gitpython-developers/GitPython
Repository navigation
BF: remove a submodule with a remote without refs + misc fixes around - #521
Merged
ankostis merged 4 commits into gitpython-developers:master from yarikoptic:bf-rsubmodule-remove Oct 2, 2016
Merged
BF: remove a submodule with a remote without refs + misc fixes around #521 ankostis merged 4 commits into gitpython-developers:master from yarikoptic:bf-rsubmodule-remove
Conversation
yarikoptic commented Oct 2, 2016
Copy link Copy Markdown
Contributor
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")
BF: Allow to remove a submodule with a remote without refs
f2b92c6
yarikoptic
mentioned this pull request
Oct 2, 2016
uninstall would fail uninstall submodule with special remotes!
datalad/datalad#970
Closed
ankostis commented Oct 2, 2016
Copy link Copy Markdown
Contributor
|
@yarikoptic would it be possible to add a test-case into the PR with the annex command, replicating the situation you just described? |
BF: @with_rw_directory must return decorated call
31fd955
As it was - many tests were simply not accounted/run at all
BF: log.info is a function, just pass msg, no .write!
2528d11
TST: finishing test for removing submodule with remotes without refs
f284a4e
originally draft committed by mistake in 31fd955 sorry
yarikoptic commented Oct 2, 2016
Copy link Copy Markdown
Contributor
Author
|
ok @ankostis -- but along the way had to fix 2 other bugs... apparently some tests (which used |
View reviewed changes
Comment thread git/test/test_submodule.py
| assert sm.exists() | ||
|
|
||
| parent.index.commit("Added submodule") | ||
|
|
yarikoptic commented Oct 2, 2016
Copy link Copy Markdown
Contributor
Author
|
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 |
RF: coveralls (not used/relied on really) -> codeco
18caa95
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 reportsyarikoptic mentioned this pull request Oct 2, 2016 RF: coveralls (not used/relied on really) -> codecov #522 Merged yarikoptic added a commit to yarikoptic/GitPython that referenced this pull request Oct 2, 2016
RF: coveralls (not used/relied on really) -> codecov
94ca83c
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
ankostis commented Oct 2, 2016
Copy link Copy Markdown
Contributor
|
@yarikoptic so you mean that |
yarikoptic commented Oct 2, 2016
Copy link Copy Markdown
Contributor
Author
|
Yes, at least since some time in the past |
yarikoptic commented Oct 2, 2016
Copy link Copy Markdown
Contributor
Author
|
If your really want to know, I could check later since when |
ankostis commented Oct 2, 2016 · edited Loading
Copy link Copy Markdown
Contributor
|
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 |
f284a4e
into
gitpython-developers : master
Oct 2, 2016
ankostis
added a commit
that referenced
this pull request
Oct 2, 2016
"Null" merge yarik/bf-rsubmodule-remove to close #521
3dc2f73
+ The actual commits have been re-written and rebased previously.
ankostis commented Oct 2, 2016
Copy link Copy Markdown
Contributor
|
On Travis, PY3.3 failed due to file-handles; increased ulimit 96-->100 solved the problem. |
ankostis commented Oct 2, 2016 · edited Loading
Copy link Copy Markdown
Contributor
|
Forgot to thank you. |
yarikoptic commented Oct 3, 2016
Copy link Copy Markdown
Contributor
Author
|
That is OK, if you like to see me there - add, otherwise I am just fine. Cheers. Thanks for attending to my PRs quickly |