Skip to content
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

Archiving Repository fails when it has one or more sub-modules #284

Open
SeanKilleen opened this issue Feb 23, 2023 · 0 comments
Open

Archiving Repository fails when it has one or more sub-modules #284

SeanKilleen opened this issue Feb 23, 2023 · 0 comments
Labels
area:sunsetting bug Something isn't working

Comments

@SeanKilleen
Copy link
Contributor

When downloading and zipping up a repository for archive, if the repository has a sub-module, the operation will fail.

LibGit2Sharp.RecurseSubmodulesException: The top level repository was cloned, but there was an error cloning its submodules.
2023-02-23T13:56:17.691858819Z ---> LibGit2Sharp.LibGit2SharpException: invalid argument: 'url'
2023-02-23T13:56:17.691867719Z at LibGit2Sharp.Core.Ensure.HandleError(Int32 result) in //LibGit2Sharp/Core/Ensure.cs:line 154
2023-02-23T13:56:17.691873819Z at LibGit2Sharp.Core.Ensure.ZeroResult(Int32 result) in /
/LibGit2Sharp/Core/Ensure.cs:line 172
2023-02-23T13:56:17.691879019Z at LibGit2Sharp.Core.Proxy.git_submodule_resolve_url(RepositoryHandle repo, String url) in //LibGit2Sharp/Core/Proxy.cs:line 2993
2023-02-23T13:56:17.691884519Z at LibGit2Sharp.Repository.RecursivelyCloneSubmodules(CloneOptions options, String repoPath, Int32 recursionDepth) in /
/LibGit2Sharp/Repository.cs:line 851
2023-02-23T13:56:17.691889819Z at LibGit2Sharp.Repository.Clone(String sourceUrl, String workdirPath, CloneOptions options) in //LibGit2Sharp/Repository.cs:line 810
2023-02-23T13:56:17.691894919Z --- End of inner exception stack trace ---
2023-02-23T13:56:17.691899919Z at LibGit2Sharp.Repository.Clone(String sourceUrl, String workdirPath, CloneOptions options) in /
/LibGit2Sharp/Repository.cs:line 814
2023-02-23T13:56:17.691905319Z at Konmaripo.Web.Services.RepositoryArchiver.CloneRepositoryWithTagsAndBranches(String repoName) in /src/Konmaripo.Web/Services/RepositoryArchiver.cs:line 51

@SeanKilleen SeanKilleen added bug Something isn't working area:sunsetting labels Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:sunsetting bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant