Skip to content

Conversation

jamill
Copy link
Member

@jamill jamill commented Feb 10, 2015

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.

@jamill
Copy link
Member Author

jamill commented Feb 10, 2015

Not the biggest fan of the CurrentRepository prefix on the repository callbacks and the enum, but using it until I come up with a better name.

@jamill
Copy link
Member Author

jamill commented Feb 10, 2015

I think this could supersede #640

Copy link
Member

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?

@nulltoken nulltoken mentioned this pull request Feb 14, 2015
@jamill jamill force-pushed the jamill/clone_recurse_submodule branch from 319901c to 873e1c1 Compare February 18, 2015 16:38
@jamill jamill changed the title WIP: Initial structure to recursively clone submodules Teach clone to recurse into submodules Feb 18, 2015
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that a reminder?

@jamill jamill force-pushed the jamill/clone_recurse_submodule branch from e41ccb1 to 9faba84 Compare February 20, 2015 03:01
@jamill jamill self-assigned this Feb 28, 2015
@jamill jamill force-pushed the jamill/clone_recurse_submodule branch from e7bcd8c to c00c77a Compare March 4, 2015 02:42
@jamill
Copy link
Member Author

jamill commented Mar 6, 2015

@nulltoken How do you feel about this? I added a new exception to indicate when an error was encountered while recursively cloning submodules.

@nulltoken nulltoken force-pushed the jamill/clone_recurse_submodule branch from 73eab1b to 325f641 Compare March 13, 2015 21:22
@nulltoken
Copy link
Member

@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)

image

/cc @ethomson

@jamill
Copy link
Member Author

jamill commented Mar 14, 2015

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
Sent: ý3/ý14/ý2015 9:39 AM
To: libgit2/libgit2sharpmailto:libgit2sharp@noreply.github.com
Cc: Jameson Millermailto:jamill@microsoft.com
Subject: Re: [libgit2sharp] Teach clone to recurse into submodules (#949)

@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


Reply to this email directly or view it on GitHubhttps://github.com//pull/949#issuecomment-80480490.

@nulltoken
Copy link
Member

@jamill I think it's unrelated to the clone work as the Xunit20 branch fails as well.

@nulltoken nulltoken force-pushed the jamill/clone_recurse_submodule branch from 325f641 to 98345d1 Compare March 17, 2015 22:05
@nulltoken
Copy link
Member

@jamill Ok to squash and merge?

@nulltoken nulltoken added this to the v0.22 milestone Mar 22, 2015
Add property to CloneOptions to allow clone to recurse into submodules.
@nulltoken nulltoken force-pushed the jamill/clone_recurse_submodule branch from 98345d1 to b304c07 Compare April 7, 2015 13:55
@nulltoken nulltoken merged commit b304c07 into vNext Apr 7, 2015
@nulltoken nulltoken deleted the jamill/clone_recurse_submodule branch April 7, 2015 14:21
@nulltoken
Copy link
Member

Published as NuGet pre-release package LibGit2Sharp.0.22.0-pre20150409142943

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling b304c07 on jamill/clone_recurse_submodule into * on vNext*.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants