locked
Visual Studio Team Service - Build repositories with Sub modules using SSH RRS feed

  • Question

  • I have a repository with sub modules linked using SSH connection. When I try to build it using hosted agent in VST  I get the below error.

     

    Error

    LibGit2Sharp.NotFoundException: Object not found - no matching loose object (cca5a5440b883ba6de23a3bb62f155954e648ed3)

    at LibGit2Sharp.Core.Ensure.HandleError(Int32 result)

    at LibGit2Sharp.SubmoduleCollection.Update(String name, SubmoduleUpdateOptions options)

    at Microsoft.TeamFoundation.DistributedTask.Task.Internal.Core.GitHelper.DoUpdateSubmodules(Repository repository, Int32 maxRecursionDepth, Int32 currentRecursionDepth, String username, String password, CancellationToken cancellationToken)

    at Microsoft.TeamFoundation.DistributedTask.Task.Internal.Core.GitHelper.UpdateSubmodules(ITaskEndpoint endpoint, Repository repository, Int32 maxRecursionDepth, CancellationToken cancellationToken)

    at Microsoft.TeamFoundation.DistributedTask.Task.Internal.Core.GitHelper.SyncAndCheckout(Boolean cleanRepository, String sourceBranch, String sourceVersion, Boolean checkoutSubmodules, CancellationToken cancellationToken)

    at Microsoft.TeamFoundation.DistributedTask.Plugin.Build.GitSourceProvider.<>c__DisplayClass3_0.<PrepareRepositoryAsync>b__0()

    Notes

    • Repository and sub module repositories are in VST.
    • I have “Checkout submodules” option checked in the repository setting of my build
    • Cloning the repository locally and building is working fine.
    • if I use "alternate authentication credentials" and https instead of SSH while adding submodules then also the VST build works fine.

    NOT working .gitmodules

    [submodule "xxx"]  path = xxxx url = ssh://xx@xx.visualstudio.com:22/_git/xxx

    Working .gitmodules

    [submodule "xxx"]  path = xxxx url = https://xx@xx.visualstudio.com/_git/xxx



    Friday, July 1, 2016 8:06 PM

All replies

  • Hi,

    This issue is related to Visual Studio Team Services, the Visual Studio Team Services forum is the better place for this issue, and I will move it there for you.

    Regards

    Starain

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, July 4, 2016 5:32 AM
  • Greetings,

    Please check the link https://github.com/libgit2/libgit2/pull/3500 , which might help you.

    Please create support ticket if it doesn't help.

    https://www.visualstudio.com/en-us/support/support-overview-vs

    Regards,

    Wednesday, July 13, 2016 7:40 PM
  • Were you able to solve the issue? I am having the same problem.

    Jonas Stawski

    Monday, August 15, 2016 8:38 PM