Skip to content

401 Clone Bug in 0.19 #834

Description

@BoasE

Perhaps this is an reentry of : #529

After upgrading from 0.17 to 0.19 i got this bug again. anyoneelse? (PS only when i use libgit inside a MVC Application not from a console)

I can simple reproducei t.

Create a new ASP MVC 4.5 Project. Add nuget reference to current libgit package (0.19) then extend a controller like HomeController with the following code

  public async Task<ActionResult> Index()
        {


            string myRepo = ; <- Place your reponame here
            string myLocalPath = <- PLace yoru local path here

            Credentials credentials = new UsernamePasswordCredentials()
            {
                Username = "User",
                Password = "PW!"
            };

            try
            {
                CloneOptions options = new CloneOptions { IsBare = false, Credentials = credentials };
                Repository.Clone(myRepo, myLocalPath, options);
            }
            catch (Exception err)
            {
                if (err != null)
                { }
            }
            return View();
        }

i you give me your mail i could also mail you the project.

If i do the same thing with 0.17 everything works fine.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions