Closed
Description
Using LibGit2Sharp 0.22.0-pre20150606092322, I cloned a repository containing a submodule, which in turn also has a submodule. I'm using CloneOptions with RecurseSubmodules=true.
The Repository.Clone call crashes with the following exception:
LibGit2Sharp.RecurseSubmodulesException was unhandled
HResult=-2146233088
Message=The top level repository was cloned, but there was an error cloning its submodules.
Source=LibGit2Sharp
InitialRepositoryPath=C:\Workspace\ASAClone\.git\
StackTrace:
at LibGit2Sharp.Repository.Clone(String sourceUrl, String workdirPath, CloneOptions options) in c:\projects\libgit2sharp\LibGit2Sharp\Repository.cs:line 661
at ASABuildAgent.GitCheckoutInstruction.Execute(Stream outputLogStream) in c:\Workspace\asa\Source\ToolsAndUtils\Build\ASABuildAgent\GitCheckoutInstruction.cs:line 44
at ASABuildAgent.BuildAgent.DoBuild() in c:\Workspace\asa\Source\ToolsAndUtils\Build\ASABuildAgent\BuildAgent.cs:line 37
at ASABuildAgent.Program.Main(String[] args) in c:\Workspace\asa\Source\ToolsAndUtils\Build\ASABuildAgent\Program.cs:line 43
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException: LibGit2Sharp.LibGit2SharpException
HResult=-2146233088
Message=Cannot checkout to invalid path 'boost/accumulators/accumulators.hpp'
Source=LibGit2Sharp
StackTrace:
at LibGit2Sharp.Core.Ensure.HandleError(Int32 result) in c:\projects\libgit2sharp\LibGit2Sharp\Core\Ensure.cs:line 127
at LibGit2Sharp.Core.Ensure.ZeroResult(Int32 result) in c:\projects\libgit2sharp\LibGit2Sharp\Core\Ensure.cs:line 145
at LibGit2Sharp.Core.Proxy.git_submodule_update(SubmoduleSafeHandle submodule, Boolean init, GitSubmoduleOptions& options) in c:\projects\libgit2sharp\LibGit2Sharp\Core\Proxy.cs:line 2565
at LibGit2Sharp.SubmoduleCollection.Update(String name, SubmoduleUpdateOptions options) in c:\projects\libgit2sharp\LibGit2Sharp\SubmoduleCollection.cs:line 114
at LibGit2Sharp.Repository.RecursivelyCloneSubmodules(CloneOptions options, String repoPath, Int32 recursionDepth) in c:\projects\libgit2sharp\LibGit2Sharp\Repository.cs:line 721
at LibGit2Sharp.Repository.RecursivelyCloneSubmodules(CloneOptions options, String repoPath, Int32 recursionDepth) in c:\projects\libgit2sharp\LibGit2Sharp\Repository.cs:line 735
at LibGit2Sharp.Repository.Clone(String sourceUrl, String workdirPath, CloneOptions options) in c:\projects\libgit2sharp\LibGit2Sharp\Repository.cs:line 657
InnerException:
Metadata
Metadata
Assignees
Labels
No labels