libgit2 / libgit2sharp

Git + .NET = ❤
http://libgit2.github.com
MIT License
3.15k stars 887 forks source link

Init leaves link behind #1954

Open Clindbergh opened 2 years ago

Clindbergh commented 2 years ago

Reproduction steps

// See https://aka.ms/new-console-template for more information

using LibGit2Sharp;

var tempPath = Path.Combine(Path.GetTempPath(), new Random().NextInt64().ToString());
var repoDirectory = Repository.Init(tempPath);
Console.WriteLine($"Created repo at {repoDirectory}");

Expected behavior

An empty directory with nothing but the .git directory.

Actual behavior

image

Version of LibGit2Sharp (release number or SHA1)

0.26.2

Operating system(s) tested; .NET runtime tested

net6.0, Win10