-
Notifications
You must be signed in to change notification settings - Fork 910
Teach clone to recurse into submodules #949
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
Conversation
Not the biggest fan of the |
I think this could supersede #640 |
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.
Can we make this internal?
319901c
to
873e1c1
Compare
LibGit2Sharp.Tests/CloneFixture.cs
Outdated
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.
Is that a reminder?
e41ccb1
to
9faba84
Compare
e7bcd8c
to
c00c77a
Compare
@nulltoken How do you feel about this? I added a new exception to indicate when an error was encountered while recursively cloning submodules. |
73eab1b
to
325f641
Compare
@jamill Something weird is going on. Running the CloneFixture trashes the test runners (repo'd with TestDiven.net and Resharper). I've repro'd this as well by removing all the fixtures from the project (by FWIW, the call stack looks suspiciously similar to #895 (comment) /cc @ethomson |
Unfortunate - I hadn't seen this issue before. Are we seeing this issue even without the new clone changes? Will try to take a look, but probably won't be right away. Sent from my Windows Phone From: nulltokenmailto:notifications@github.com @jamillhttps://github.com/jamill Something weird is going on. Running the CloneFixture trashes the test runners (repo'd with TestDiven.net and Resharper). I've repro'd this as well by removing all the fixtures from the project (by CloneFixture) and running .\build.libgit2sharp.cmd in a Powershell session. FWIW, the call stack looks suspiciously similar to #895 (comment)#895 (comment) [image]https://cloud.githubusercontent.com/assets/92363/6651850/a10ece06-ca57-11e4-8f01-9ae49815d92f.png /cc @ethomsonhttps://github.com/ethomson — |
@jamill I think it's unrelated to the clone work as the Xunit20 branch fails as well. |
325f641
to
98345d1
Compare
@jamill Ok to squash and merge? |
Add property to CloneOptions to allow clone to recurse into submodules.
98345d1
to
b304c07
Compare
Published as NuGet pre-release package |
Changes Unknown when pulling b304c07 on jamill/clone_recurse_submodule into * on vNext*. |
This is the basic outline to enable cloning with the option to recursively clone submodules. I wanted to put this up to get feedback on how the progress is reported through callbacks.
Notes:
This adds callbacks that are called before and after cloning a repository. The user has an opportunity to cancel the clone before starting a clone operation in a repository.